GraphicsPath.AddString
Contents
[
Hide
]AddString(string, FontFamily, int, float, Point, StringFormat)
Adds a text string to this path.
public void AddString(string s, FontFamily family, int style, float emSize, Point origin,
StringFormat format)
Parameter | Type | Description |
---|---|---|
s | String | The String to add. |
family | FontFamily | A FontFamily that represents the name of the font with which the test is drawn. |
style | Int32 | A FontStyle enumeration that represents style information about the text (bold, italic, and so on). This must be cast as an integer (see the example code later in this section). |
emSize | Single | The height of the EM square box that bounds the character. |
origin | Point | A Point that represents the point where the text starts. |
format | StringFormat | A StringFormat that specifies text formatting information, such as line spacing and alignment. |
See Also
- class FontFamily
- struct Point
- class StringFormat
- class GraphicsPath
- namespace System.Drawing.Drawing2D
- assembly Aspose.Drawing
AddString(string, FontFamily, int, float, PointF, StringFormat)
Adds a text string to this path.
public void AddString(string s, FontFamily family, int style, float emSize, PointF origin,
StringFormat format)
Parameter | Type | Description |
---|---|---|
s | String | The String to add. |
family | FontFamily | A FontFamily that represents the name of the font with which the test is drawn. |
style | Int32 | A FontStyle enumeration that represents style information about the text (bold, italic, and so on). This must be cast as an integer (see the example code later in this section). |
emSize | Single | The height of the EM square box that bounds the character. |
origin | PointF | A PointF that represents the point where the text starts. |
format | StringFormat | A StringFormat that specifies text formatting information, such as line spacing and alignment. |
See Also
- class FontFamily
- struct PointF
- class StringFormat
- class GraphicsPath
- namespace System.Drawing.Drawing2D
- assembly Aspose.Drawing
AddString(string, FontFamily, int, float, Rectangle, StringFormat)
Adds a text string to this path.
public void AddString(string s, FontFamily family, int style, float emSize, Rectangle layoutRect,
StringFormat format)
Parameter | Type | Description |
---|---|---|
s | String | The String to add. |
family | FontFamily | A FontFamily that represents the name of the font with which the test is drawn. |
style | Int32 | A FontStyle enumeration that represents style information about the text (bold, italic, and so on). This must be cast as an integer (see the example code later in this section). |
emSize | Single | The height of the EM square box that bounds the character. |
layoutRect | Rectangle | A Rectangle that represents the rectangle that bounds the text. |
format | StringFormat | A StringFormat that specifies text formatting information, such as line spacing and alignment. |
See Also
- class FontFamily
- struct Rectangle
- class StringFormat
- class GraphicsPath
- namespace System.Drawing.Drawing2D
- assembly Aspose.Drawing
AddString(string, FontFamily, int, float, RectangleF, StringFormat)
Adds a text string to this path.
public void AddString(string s, FontFamily family, int style, float emSize, RectangleF layoutRect,
StringFormat format)
Parameter | Type | Description |
---|---|---|
s | String | The String to add. |
family | FontFamily | A FontFamily that represents the name of the font with which the test is drawn. |
style | Int32 | A FontStyle enumeration that represents style information about the text (bold, italic, and so on). This must be cast as an integer (see the example code later in this section). |
emSize | Single | The height of the EM square box that bounds the character. |
layoutRect | RectangleF | A RectangleF that represents the rectangle that bounds the text. |
format | StringFormat | A StringFormat that specifies text formatting information, such as line spacing and alignment. |
See Also
- class FontFamily
- struct RectangleF
- class StringFormat
- class GraphicsPath
- namespace System.Drawing.Drawing2D
- assembly Aspose.Drawing