[]
Draws a combo box.
public static void DrawComboBox(this GcGraphics g, RectangleF bounds, string fieldText, TextFormat textFormat, Color backColor, Border border, bool required, float orientation, bool drawButton)
Public Shared Sub DrawComboBox(g As GcGraphics, bounds As RectangleF, fieldText As String, textFormat As TextFormat, backColor As Color, border As Border, required As Boolean, orientation As Single, drawButton As Boolean)
Type | Name | Description |
---|---|---|
GcGraphics | g | The graphics to draw on. |
RectangleF | bounds | The control bounds. |
string | fieldText | The control text. |
TextFormat | textFormat | The text format to use. |
Color | backColor | The background color. |
Border | border | The border definition. |
bool | required | Indicates whether to draw the border in red, ignoring the color specified in |
float | orientation | The rotation angle, should be a multiple of 90. |
bool | drawButton | Indicates whether to draw drop-down button. |
Draws a combo box.
public static void DrawComboBox(this GcGraphics g, RectangleF bounds, string fieldText, TextFormat textFormat, Color backColor, Border border, bool required)
Public Shared Sub DrawComboBox(g As GcGraphics, bounds As RectangleF, fieldText As String, textFormat As TextFormat, backColor As Color, border As Border, required As Boolean)
Type | Name | Description |
---|---|---|
GcGraphics | g | The graphics to draw on. |
RectangleF | bounds | The control bounds. |
string | fieldText | The control text. |
TextFormat | textFormat | The text format to use. |
Color | backColor | The background color. |
Border | border | The border definition. |
bool | required | Indicates whether to draw the border in red, ignoring the color specified in |
Draws a combo box.
public static void DrawComboBox(this GcGraphics g, RectangleF bounds, string fieldText, Font font, float fontSize, Color foreColor, Color backColor, Border border, bool required, float orientation, bool drawButton)
Public Shared Sub DrawComboBox(g As GcGraphics, bounds As RectangleF, fieldText As String, font As Font, fontSize As Single, foreColor As Color, backColor As Color, border As Border, required As Boolean, orientation As Single, drawButton As Boolean)
Type | Name | Description |
---|---|---|
GcGraphics | g | The graphics to draw on. |
RectangleF | bounds | The control bounds. |
string | fieldText | The control text. |
Font | font | The font. |
float | fontSize | The font size. |
Color | foreColor | The fore color. |
Color | backColor | The background color. |
Border | border | The border definition. |
bool | required | Indicates whether to draw the border in red, ignoring the color specified in |
float | orientation | The rotation angle, should be a multiple of 90. |
bool | drawButton | Indicates whether to draw drop-down button. |
Draws a combo box.
public static void DrawComboBox(this GcGraphics g, RectangleF bounds, string fieldText, Font font, float fontSize, Color foreColor, Color backColor, Border border, bool required)
Public Shared Sub DrawComboBox(g As GcGraphics, bounds As RectangleF, fieldText As String, font As Font, fontSize As Single, foreColor As Color, backColor As Color, border As Border, required As Boolean)
Type | Name | Description |
---|---|---|
GcGraphics | g | The graphics to draw on. |
RectangleF | bounds | The control bounds. |
string | fieldText | The control text. |
Font | font | The font. |
float | fontSize | The font size. |
Color | foreColor | The fore color. |
Color | backColor | The background color. |
Border | border | The border definition. |
bool | required | Indicates whether to draw the border in red, ignoring the color specified in |
Draws a combo box.
public static void DrawComboBox(this GcGraphics g, RectangleF bounds, IList<ChoiceFieldItem> items, int selectedIndex, TextFormat textFormat, Color backColor, Border border, bool required, float orientation, bool drawButton)
Public Shared Sub DrawComboBox(g As GcGraphics, bounds As RectangleF, items As IList(Of ChoiceFieldItem), selectedIndex As Integer, textFormat As TextFormat, backColor As Color, border As Border, required As Boolean, orientation As Single, drawButton As Boolean)
Type | Name | Description |
---|---|---|
GcGraphics | g | The graphics to draw on. |
RectangleF | bounds | The control bounds. |
IList<ChoiceFieldItem> | items | The control items. |
int | selectedIndex | The index of an item in |
TextFormat | textFormat | The text format to use. |
Color | backColor | The background color. |
Border | border | The border definition. |
bool | required | Indicates whether to draw the border in red, ignoring the color specified in |
float | orientation | The rotation angle, should be a multiple of 90. |
bool | drawButton | Indicates whether to draw drop-down button. |
Draws a combo box.
public static void DrawComboBox(this GcGraphics g, RectangleF bounds, IList<ChoiceFieldItem> items, int selectedIndex, TextFormat textFormat, Color backColor, Border border, bool required)
Public Shared Sub DrawComboBox(g As GcGraphics, bounds As RectangleF, items As IList(Of ChoiceFieldItem), selectedIndex As Integer, textFormat As TextFormat, backColor As Color, border As Border, required As Boolean)
Type | Name | Description |
---|---|---|
GcGraphics | g | The graphics to draw on. |
RectangleF | bounds | The control bounds. |
IList<ChoiceFieldItem> | items | The control items. |
int | selectedIndex | The index of an item in |
TextFormat | textFormat | The text format to use. |
Color | backColor | The background color. |
Border | border | The border definition. |
bool | required | Indicates whether to draw the border in red, ignoring the color specified in |
Draws a combo box.
public static void DrawComboBox(this GcGraphics g, RectangleF bounds, IList<ChoiceFieldItem> items, int selectedIndex, Font font, float fontSize, Color foreColor, Color backColor, Border border, bool required, float orientation, bool drawButton)
Public Shared Sub DrawComboBox(g As GcGraphics, bounds As RectangleF, items As IList(Of ChoiceFieldItem), selectedIndex As Integer, font As Font, fontSize As Single, foreColor As Color, backColor As Color, border As Border, required As Boolean, orientation As Single, drawButton As Boolean)
Type | Name | Description |
---|---|---|
GcGraphics | g | The graphics to draw on. |
RectangleF | bounds | The control bounds. |
IList<ChoiceFieldItem> | items | The control items. |
int | selectedIndex | The index of an item in |
Font | font | The font. |
float | fontSize | The font size. |
Color | foreColor | The fore color. |
Color | backColor | The background color. |
Border | border | The border definition. |
bool | required | Indicates whether to draw the border in red, ignoring the color specified in |
float | orientation | The rotation angle, should be a multiple of 90. |
bool | drawButton | Indicates whether to draw drop-down button. |
Draws a combo box.
public static void DrawComboBox(this GcGraphics g, RectangleF bounds, IList<ChoiceFieldItem> items, int selectedIndex, Font font, float fontSize, Color foreColor, Color backColor, Border border, bool required)
Public Shared Sub DrawComboBox(g As GcGraphics, bounds As RectangleF, items As IList(Of ChoiceFieldItem), selectedIndex As Integer, font As Font, fontSize As Single, foreColor As Color, backColor As Color, border As Border, required As Boolean)
Type | Name | Description |
---|---|---|
GcGraphics | g | The graphics to draw on. |
RectangleF | bounds | The control bounds. |
IList<ChoiceFieldItem> | items | The control items. |
int | selectedIndex | The index of an item in |
Font | font | The font. |
float | fontSize | The font size. |
Color | foreColor | The fore color. |
Color | backColor | The background color. |
Border | border | The border definition. |
bool | required | Indicates whether to draw the border in red, ignoring the color specified in |