.NET Framework Class Library
NeutralFormat.MDAddText Method
|
<< Click to Display Table of Contents >> Navigation: MwPDMApi Namespace > NeutralFormat Class > NeutralFormat Methods > .NET Framework Class Library |
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, _ |
C# |
|---|
public void MDAddText( int mdid, |
Visual C++ |
|---|
public: void MDAddText( |
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