[]
Draws the specified text string in the specified rectangle.
public abstract void DrawText(string text, Font font, Rectangle rect, Rectangle padding, HorizontalAlignment left, VerticalAlignment bottom, bool wrapText, int rotation = 0, bool shrinkToFit = false)
Public MustOverride Sub DrawText(text As String, font As Font, rect As Rectangle, padding As Rectangle, left As HorizontalAlignment, bottom As VerticalAlignment, wrapText As Boolean, Optional rotation As Integer = 0, Optional shrinkToFit As Boolean = False)
Type | Name | Description |
---|---|---|
string | text | String to draw. |
Font | font | GrapeCity.Spreadsheet.Font that defines the text format of the string. |
Rectangle | rect | GrapeCity.Drawing.Rectangle structure that specifies the boundary of the drawn text. |
Rectangle | padding | The padding rectangle. |
HorizontalAlignment | left | The horizontal alignment |
VerticalAlignment | bottom | The vertical alignment. |
bool | wrapText | the wrapText. |
int | rotation | The rotation. |
bool | shrinkToFit | The shrink to fit. |