DXFReaderNETControlDrawText Method (Pen, String, Vector2, Double, Double, FontStyle, StringAlignment, Boolean)
|
Draws a text on the control.
Namespace:
DXFReaderNET
Assembly:
DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax public void DrawText(
Pen Pen,
string Text,
Vector2 Position,
double TextHeight,
double Rotation = 0,
FontStyle Style = FontStyle.Regular,
StringAlignment Alignment = StringAlignment.Near,
bool Store = false
)
Public Sub DrawText (
Pen As Pen,
Text As String,
Position As Vector2,
TextHeight As Double,
Optional Rotation As Double = 0,
Optional Style As FontStyle = FontStyle.Regular,
Optional Alignment As StringAlignment = StringAlignment.Near,
Optional Store As Boolean = false
)
public:
void DrawText(
Pen^ Pen,
String^ Text,
Vector2 Position,
double TextHeight,
double Rotation = 0,
FontStyle Style = FontStyle::Regular,
StringAlignment Alignment = StringAlignment::Near,
bool Store = false
)
member DrawText :
Pen : Pen *
Text : string *
Position : Vector2 *
TextHeight : float *
?Rotation : float *
?Style : FontStyle *
?Alignment : StringAlignment *
?Store : bool
(* Defaults:
let _Rotation = defaultArg Rotation 0
let _Style = defaultArg Style FontStyle.Regular
let _Alignment = defaultArg Alignment StringAlignment.Near
let _Store = defaultArg Store false
*)
-> unit
METHOD DrawText(
Pen AS Pen,
Text AS STRING,
Position AS Vector2,
TextHeight AS REAL8,
Rotation AS REAL8 := 0,
Style AS FontStyle := FontStyle.Regular,
Alignment AS StringAlignment := StringAlignment.Near,
Store AS LOGIC := FALSE
) AS VOID
Parameters
- Pen
- Type: System.DrawingPen
the pen object to render the element - Text
- Type: SystemString
the text - Position
- Type: DXFReaderNETVector2
position of the text in drawing's units. - TextHeight
- Type: SystemDouble
height of the text in drawing's units - Rotation (Optional)
- Type: SystemDouble
Text rotation about position. - Style (Optional)
- Type: System.DrawingFontStyle
Specifies style information applied to text. - Alignment (Optional)
- Type: System.DrawingStringAlignment
The text alignment (Default value = StringAlignment.Near). - Store (Optional)
- Type: SystemBoolean
If set to true the element is drawn again after a refresh.
Remarks This method adds a text to the drawing without modifying the drawing database.
See Also