DXFReaderNETControlDrawText Method (Pen, String, Vector2, Double, Double, FontStyle, TextAlignment, 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,
TextAlignment TextAlignment = TextAlignment.BaselineLeft,
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 TextAlignment As TextAlignment = TextAlignment.BaselineLeft,
Optional Store As Boolean = false
)
public:
void DrawText(
Pen^ Pen,
String^ Text,
Vector2 Position,
double TextHeight,
double Rotation = 0,
FontStyle Style = FontStyle::Regular,
TextAlignment TextAlignment = TextAlignment::BaselineLeft,
bool Store = false
)
member DrawText :
Pen : Pen *
Text : string *
Position : Vector2 *
TextHeight : float *
?Rotation : float *
?Style : FontStyle *
?TextAlignment : TextAlignment *
?Store : bool
(* Defaults:
let _Rotation = defaultArg Rotation 0
let _Style = defaultArg Style FontStyle.Regular
let _TextAlignment = defaultArg TextAlignment TextAlignment.BaselineLeft
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,
TextAlignment AS TextAlignment := TextAlignment.BaselineLeft,
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. - TextAlignment (Optional)
- Type: DXFReaderNET.EntitiesTextAlignment
The text alignment (Default value = TextAlignment.BaselineLef). - 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