.NET Framework Class Library
NeutralFormat.MDAddRect Method

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > .NET API > MwPDMApi Namespace > NeutralFormat Class > NeutralFormat Methods >

.NET Framework Class Library
NeutralFormat.MDAddRect Method

Insert a rectangle in the Master Drawing identified with the handler mdid.

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Sub MDAddRect ( _

mdid As Integer, _
x0 As Double, _
y0 As Double, _
x1 As Double, _
y1 As Double, _
frameWidth As Integer, _
frameRGBcolor As Integer, _
fill As Boolean, _
fillRGBcolor As Integer _
)

C#

public void MDAddRect(

int mdid,
double x0,
double y0,
double x1,
double y1,
int frameWidth,
int frameRGBcolor,
bool fill,
int fillRGBcolor
)

Visual C++

public:

void MDAddRect(
int mdid,
double x0,
double y0,
double x1,
double y1,
int frameWidth,
int frameRGBcolor,
bool fill,
int fillRGBcolor
)

JavaScript

function mdAddRect(mdid, x0, y0, x1, y1, frameWidth, frameRGBcolor, fill, fillRGBcolor);

Parameters

mdid

Type: System.Int32
Master Drawing handler

x0

Type: System.Double
rectangle x-coordinate of the lower-left point (in millimeters)

y0

Type: System.Double
rectangle y-coordinate of the lower-left point (in millimeters)

x1

Type: System.Double
rectangle x-coordinate of the upper-right point (in millimeters)

y1

Type: System.Double
rectangle y-coordinate of the upper-right point (in millimeters)

frameWidth

Type: System.Int32

frameRGBcolor

Type: System.Int32
color of the frame defined as RGB

fill

Type: System.Boolean

fillRGBcolor

Type: System.Int32
fill color

Remarks

This command is effective for PDF format only

See Also

NeutralFormat Class

NeutralFormat Members

MwPDMApi Namespace