Class MetroForm
Inheritance
System.Object
MetroForm
Assembly: Syncfusion.Shared.Base.dll
public class MetroForm : Form
Constructors
Declaration
Properties
Gets or sets a value indicating whether the rounded corners are enabled.
Declaration
public bool AllowRoundedCorners { get; set; }
Property Value
Type |
Description |
System.Boolean |
The default value is false.
|
Declaration
public override bool AutoScroll { get; set; }
Property Value
Declaration
public override Color BackColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets or Sets the value for CaptionBarColor BorderColor
Declaration
public Color BorderColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets or Set the valur for BorderThickness
Declaration
public int BorderThickness { get; set; }
Property Value
Gets or sets the alignment of of the form's title.
Declaration
public HorizontalAlignment CaptionAlign { get; set; }
Property Value
Type |
System.Windows.Forms.HorizontalAlignment |
Declaration
public Brush CaptionBarBrush { get; set; }
Property Value
Type |
System.Drawing.Brush |
Gets or Sets the value for CaptionBarColor
Declaration
public Color CaptionBarColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets or Sets value for CaptionBarHeight
Declaration
public int CaptionBarHeight { get; set; }
Property Value
Gets or sets the value indicating whether the caption bar of the form should retain its default height when form is maximized or not.
Declaration
public CaptionBarHeightMode CaptionBarHeightMode { get; set; }
Property Value
Gets/Sets the value for CaptionButtonColor
Declaration
public Color CaptionButtonColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets/Sets the value for CaptionButtonHoverColor
Declaration
public Color CaptionButtonHoverColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets or sets the font of the form's title.
Declaration
public Font CaptionFont { get; set; }
Property Value
Gets or sets the color for caption in titlebar
Declaration
public Color CaptionForeColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets/Sets the CaptionImage for form caption
Declaration
public CaptionImageCollection CaptionImages { get; }
Property Value
Gets/Sets the label for form caption
Declaration
public CaptionLabelCollection CaptionLabels { get; }
Property Value
Gets/Sets the value for CaptionVerticalAlignment
Declaration
public VerticalAlignment CaptionVerticalAlignment { get; set; }
Property Value
Declaration
protected Office2007Colors ColorTable { get; }
Property Value
Declaration
protected override CreateParams CreateParams { get; }
Property Value
Type |
System.Windows.Forms.CreateParams |
Gets or Set Value to Drop Shadow to the form
Declaration
public bool DropShadow { get; set; }
Property Value
Declaration
public bool EnableTouchMode { get; set; }
Property Value
Declaration
public HorizontalAlignment IconAlign { get; set; }
Property Value
Type |
System.Windows.Forms.HorizontalAlignment |
IconTextRelation
Declaration
public LeftRightAlignment IconTextRelation { get; set; }
Property Value
Type |
System.Windows.Forms.LeftRightAlignment |
Gets or sets the visibility of the inner border of the Form.
Declaration
public bool InnerBorderVisibility { get; set; }
Property Value
Declaration
protected bool IsActive { get; }
Property Value
Declaration
protected bool IsRightToLeft { get; }
Property Value
Gets or Sets the value for CaptionBarColor BorderColor MetroColor
Declaration
public Color MetroColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets / set the value to enable the MaximizeBox
Declaration
public bool ShowMaximizeBox { get; set; }
Property Value
Gets / set the value to enable the MinimizeBox
Declaration
public bool ShowMinimizeBox { get; set; }
Property Value
Gets or Sets Mouse over color for CaptionButtons
Declaration
public bool ShowMouseOver { get; set; }
Property Value
Methods
Declaration
public void ApplyScaleToControl(float sf)
Parameters
Type |
Name |
Description |
System.Single |
sf |
|
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
Type |
System.Windows.Forms.AccessibleObject |
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
true if managed resources should be disposed; otherwise, false.
|
Disabling the controlbox highlights
Declaration
public void HideControlboxHighlights()
Declaration
protected virtual void OnColorSchemeChanged()
Declaration
protected override void OnHandleCreated(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
To define whether the customization needs to be applied
Declaration
protected override void OnLoad(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Occurs when Form Location is changed
Declaration
protected override void OnLocationChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
protected override void OnPaintBackground(PaintEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.PaintEventArgs |
e |
|
Declaration
protected override void OnRightToLeftChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnRightToLeftLayoutChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Raises the System.Windows.Forms.Form.Shown event.
Declaration
protected override void OnShown(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
Event args that contains the event data
|
Declaration
protected override void OnStyleChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Reset the value of the ShowMaximizeBox
Declaration
public void ResetShowMaximizeBox()
Reset the value of the ShowMinimizeBox
Declaration
public void ResetShowMinimizeBox()
Reset the value of the ShowMinimizeBox
Declaration
[Obsolete("ResetShowMinimizeeBox is deprecated, please use ResetShowMinimizeBox instead.")]
public void ResetShowMinimizeeBox()
Declaration
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
Parameters
Type |
Name |
Description |
System.Int32 |
x |
|
System.Int32 |
y |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
System.Windows.Forms.BoundsSpecified |
specified |
|
Declaration
protected override void SetClientSizeCore(int x, int y)
Parameters
Type |
Name |
Description |
System.Int32 |
x |
|
System.Int32 |
y |
|
Declaration
protected override void WndProc(ref Message m)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
m |
|
Events
This Event will be triggered, when CaptionBar is painted and it is used to customize the CaptionBar.
Declaration
public event PaintEventHandler CaptionBarPaint
Event Type
Type |
System.Windows.Forms.PaintEventHandler |