menu

WinForms

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

    Show / Hide Table of Contents

    Class Office2007Form

    Inheritance
    System.Object
    Office2007Form
    DiagramLoadBaseWizard
    ChartTemplateWizard
    ChartWizardForm
    ColorDlgAdv
    DockingWrapperForm
    Namespace: Syncfusion.Windows.Forms
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class Office2007Form : Form

    Constructors

    Office2007Form()

    Constructor for Office2007form with empty arguments

    Declaration
    public Office2007Form()

    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 Office2007Visual style is enabled.

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

    If DisableOffice2007Style 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

    CaptionBarHeightMode

    Declaration
    public CaptionBarHeightMode CaptionBarHeightMode { get; set; }
    Property Value
    Type
    CaptionBarHeightMode

    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 Office2007 ColorScheme

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

    ColorSchemeIsManaged

    Declaration
    [Obsolete("Please, use Office2007Form.ColorScheme = Office2007Theme.Managed")]
    public bool ColorSchemeIsManaged { get; set; }
    Property Value
    Type
    System.Boolean

    ColorTable

    Gets the ColorTable for Office2007

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

    CreateParams

    Gets the CreateParams for the Office2007 form.

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

    DisableOffice2007Style

    Gets/sets if to disable Office2007 look and feel.

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

    DropShadow

    Gets or Sets whether to enable Drop Shadow to the Office2007form

    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

    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

    UseOffice2007SchemeBackColor

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

    Declaration
    public bool UseOffice2007SchemeBackColor { 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