ZebraCardGraphicsDrawText Method (String, Font, Color, Int32, Int32, Int32, Int32, Int32, TextAlignment, TextAlignment)
|
Draws the text into the specified rectangle using the specified alignments.
Namespace:
Zebra.Sdk.Card.Graphics
Assembly:
SdkApi_Card_Desktop (in SdkApi_Card_Desktop.dll) Version: 2.14.1989
Syntax public void DrawText(
string text,
Font font,
Color color,
int x,
int y,
int width,
int height,
int angle,
TextAlignment horizontal,
TextAlignment vertical
)
Public Sub DrawText (
text As String,
font As Font,
color As Color,
x As Integer,
y As Integer,
width As Integer,
height As Integer,
angle As Integer,
horizontal As TextAlignment,
vertical As TextAlignment
)
public:
virtual void DrawText(
String^ text,
Font^ font,
Color color,
int x,
int y,
int width,
int height,
int angle,
TextAlignment horizontal,
TextAlignment vertical
) sealed
Parameters
- text
- Type: SystemString
The text to be drawn. - font
- Type: System.DrawingFont
The font type. - color
- Type: System.DrawingColor
The text color. - x
- Type: SystemInt32
The x coordinate. - y
- Type: SystemInt32
The y coordinate. - width
- Type: SystemInt32
The width of the rectangle. - height
- Type: SystemInt32
The height of the rectangle. - angle
- Type: SystemInt32
The angle of the the text to be drawn (center rotated). - horizontal
- Type: Zebra.Sdk.Card.Graphics.EnumerationsTextAlignment
The horizontal alignment of the text. - vertical
- Type: Zebra.Sdk.Card.Graphics.EnumerationsTextAlignment
The vertical alignment of the text.
Implements
ZebraGraphicsDrawText(String, Font, Color, Int32, Int32, Int32, Int32, Int32, TextAlignment, TextAlignment)Exceptions See Also