CADability dotNET
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)
Draw a text with the provided parameters and the current color.
Namespace: CADabilityAssembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)
Syntax
C# |
---|
void Text( GeoVector lineDirection, GeoVector glyphDirection, GeoPoint location, string fontName, string textString, FontStyle fontStyle, Text..::..AlignMode alignment, Text..::..LineAlignMode lineAlignment ) |
Visual Basic |
---|
Sub Text ( _ lineDirection As GeoVector, _ glyphDirection As GeoVector, _ location As GeoPoint, _ fontName As String, _ textString As String, _ fontStyle As FontStyle, _ alignment As Text..::..AlignMode, _ lineAlignment As Text..::..LineAlignMode _ ) |
Visual C++ |
---|
void Text( GeoVector lineDirection, GeoVector glyphDirection, GeoPoint location, String^ fontName, String^ textString, FontStyle fontStyle, Text..::..AlignMode alignment, Text..::..LineAlignMode lineAlignment ) |
Parameters
- lineDirection
- Type: CADability..::..GeoVector
Direction of the base line of the text
- glyphDirection
- Type: CADability..::..GeoVector
Direction of the glyph of the characters (for horizontal text this is the y-axis)
- location
- Type: CADability..::..GeoPoint
Location where to draw the text (using alignement)
- fontName
- Type: System..::..String
Name of the font
- textString
- Type: System..::..String
String to draw
- fontStyle
- Type: System.Drawing..::..FontStyle
Style of the font (e.g. bold)
- alignment
- Type: CADability.GeoObject..::..Text..::..AlignMode
Left, right or center (horizontal) alignement
- lineAlignment
- Type: CADability.GeoObject..::..Text..::..LineAlignMode
Vertical alignement