[]
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)
| 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)
| 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)
| 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)
| 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)
| 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)
| 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)
| 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)
| 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 |