.NET Framework Class Library
NeutralFormat.MDAddText Method

<< Click to Display Table of Contents >>

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

.NET Framework Class Library
NeutralFormat.MDAddText Method

Add a text to 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 MDAddText ( _

mdid As Integer, _
x As Double, _
y As Double, _
text As String, _
fontFaceName As String, _
fontHeight As Double, _
fontOrientation As Integer, _
style As Integer, _
rgbColor As Integer, _
Optional pageN As Integer = 0 _
)

C#

public void MDAddText(

int mdid,
double x,
double y,
string text,
string fontFaceName,
double fontHeight,
int fontOrientation,
int style,
int rgbColor,
int pageN = 0
)

Visual C++

public:

void MDAddText(
int mdid,
double x,
double y,
String^ text,
String^ fontFaceName,
double fontHeight,
int fontOrientation,
int style,
int rgbColor,
int pageN = 0
)

JavaScript

function mdAddText(mdid, x, y, text, fontFaceName, fontHeight, fontOrientation, style, rgbColor, pageN);

Parameters

mdid

Type: System.Int32
MDid Master Drawing handler

x

Type: System.Double
point (in millimeters) on the x axe where the text will be placed

y

Type: System.Double
point (in millimeters) on the y axe where the text will be placed

text

Type: System.String
text string to be inserted

fontFaceName

Type: System.String
name of a font type
"Arial"
"Times New Roman"
...

fontHeight

Type: System.Double
height (in millimeters) of the text to be inserted

fontOrientation

Type: System.Int32
rotation angle (in degrees) of the text

style

Type: System.Int32
0: solid
1: frame

rgbColor

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

pageN (Optional)

Type: System.Int32
the Page Number on which to put the Texts (0 = first page)

NOTE: This parameter is effective with PDF files only

Remarks

For compatibility reasons, the color is an integer in the format in 0xBBGGRR

See Also

NeutralFormat Class

NeutralFormat Members

MwPDMApi Namespace