Creates a new label
Namespace: Skewworks.NETMF.ControlsAssembly: Skewworks.NETMF.Controls (in Skewworks.NETMF.Controls.dll) Version: 2.5.0.0 (2.5.0.0)
Syntax
C# |
---|
public Label( string name, string text, Font font, int x, int y, Color foreColor, bool isTransparentBackground = true ) |
Parameters
- name
- Type: System..::..String
Name of the check box
- text
- Type: System..::..String
Text to display
- font
- Type: Font
Font to render the content text
- x
- Type: System..::..Int32
X position relative to it's parent
- y
- Type: System..::..Int32
Y position relative to it's parent
- foreColor
- Type: Color
Color to use for text rendering
- isTransparentBackground (Optional)
- Type: System..::..Boolean
true if the background should be rendered transparent
Remarks
The Width and Height is calculated automatically to fit the font.
AutoSizeMode is set to WidthAndHeight