menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Office2010Form - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Office2010Form

    Inheritance
    System.Object
    Office2010Form
    Office2010StyleMessageBoxAdv
    Namespace: Syncfusion.Windows.Forms
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class Office2010Form : Form

    Constructors

    Office2010Form()

    constructor for Office2010form with empty arguments

    Declaration
    public Office2010Form()

    Properties

    AllowRoundedCorners

    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.

    Remarks

    This option is only in effect with Windows 11.

    ApplyAeroTheme

    Gets/sets if to Force the OS Aero theme look and feel when Office2010Visual style is enabled.

    Declaration
    public virtual bool ApplyAeroTheme { get; set; }
    Property Value
    Type
    System.Boolean
    Remarks

    If DisableOffice2010Style is set to true then the ordinary form drawn will still have the aero theme applied as the default frame is drawn in the base.

    AutoScroll

    Gets or Sets the AutoScroll value

    Declaration
    public override bool AutoScroll { get; set; }
    Property Value
    Type
    System.Boolean

    CaptionAlign

    Gets or sets the alignment of of the form's title.

    Declaration
    public HorizontalAlignment CaptionAlign { get; set; }
    Property Value
    Type
    System.Windows.Forms.HorizontalAlignment

    CaptionBarHeight

    Gets or Sets the CaptionBar Height.

    Declaration
    public int CaptionBarHeight { get; set; }
    Property Value
    Type
    System.Int32

    CaptionFont

    Gets or sets the font of the form's title.

    Declaration
    public Font CaptionFont { get; set; }
    Property Value
    Type
    System.Drawing.Font

    CaptionForeColor

    Gets or sets the color for caption in titlebar

    Declaration
    public Color CaptionForeColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    ColorScheme

    Gets or sets the Office2010 colorscheme

    Declaration
    public Office2010Theme ColorScheme { get; set; }
    Property Value
    Type
    Office2010Theme

    ColorTable

    Gets the colortable for Office2010

    Declaration
    protected Office2010Colors ColorTable { get; }
    Property Value
    Type
    Office2010Colors

    CreateParams

    Gets the CreateParams for the Office2007 form.

    Declaration
    protected override CreateParams CreateParams { get; }
    Property Value
    Type
    System.Windows.Forms.CreateParams

    DisableOffice2010Style

    Gets/sets if to disable Office2010 look and feel.

    Declaration
    public virtual bool DisableOffice2010Style { get; set; }
    Property Value
    Type
    System.Boolean

    DropShadow

    Gets or Sets whether to enable Drop Shadow to the Office2010form

    Declaration
    public bool DropShadow { get; set; }
    Property Value
    Type
    System.Boolean

    EnableDpiAware

    Gets or sets a value indicating whether dpi aware should be enabled or not.

    Declaration
    public bool EnableDpiAware { get; set; }
    Property Value
    Type
    System.Boolean

    EnableTouchMode

    Gets/Sets touch enabled

    Declaration
    public bool EnableTouchMode { get; set; }
    Property Value
    Type
    System.Boolean

    IsActive

    Gets the value for IsActive

    Declaration
    protected bool IsActive { get; }
    Property Value
    Type
    System.Boolean

    IsRightToLeft

    Gets whether right to left has been set

    Declaration
    protected bool IsRightToLeft { get; }
    Property Value
    Type
    System.Boolean

    UseOffice2010SchemeBackColor

    Specifies whether current selected Office2010 scheme background color is used to fill form's backround is used. If false is used.

    Declaration
    public bool UseOffice2010SchemeBackColor { get; set; }
    Property Value
    Type
    System.Boolean

    Methods

    ApplyScaleToControl(Single)

    applies the scaling

    Declaration
    public void ApplyScaleToControl(float sf)
    Parameters
    Type Name Description
    System.Single sf

    CreateAccessibilityInstance()

    Declaration
    protected override AccessibleObject CreateAccessibilityInstance()
    Returns
    Type
    System.Windows.Forms.AccessibleObject

    OnActivated(EventArgs)

    Declaration
    protected override void OnActivated(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnColorSchemeChanged()

    Occurs when ColorScheme property is changed.

    Declaration
    protected virtual void OnColorSchemeChanged()

    OnHandleCreated(EventArgs)

    Declaration
    protected override void OnHandleCreated(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnLoad(EventArgs)

    To define whether the customization needs to be applied

    Declaration
    protected override void OnLoad(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnLocationChanged(EventArgs)

    Occurs when Form Location is changed

    Declaration
    protected override void OnLocationChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnPaintBackground(PaintEventArgs)

    Declaration
    protected override void OnPaintBackground(PaintEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.PaintEventArgs e

    OnRightToLeftChanged(EventArgs)

    Declaration
    protected override void OnRightToLeftChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnRightToLeftLayoutChanged(EventArgs)

    Declaration
    protected override void OnRightToLeftLayoutChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnShown(EventArgs)

    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

    OnStyleChanged(EventArgs)

    Declaration
    protected override void OnStyleChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    ResetDropShadow()

    Reset the value of the DropShadow

    Declaration
    public void ResetDropShadow()

    SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)

    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

    SetClientSizeCore(Int32, Int32)

    Declaration
    protected override void SetClientSizeCore(int x, int y)
    Parameters
    Type Name Description
    System.Int32 x
    System.Int32 y

    WndProc(ref Message)

    Declaration
    protected override void WndProc(ref Message m)
    Parameters
    Type Name Description
    System.Windows.Forms.Message m
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved