[]
        
(Showing Draft Content)

C1.Win.Ribbon.C1RibbonForm

C1RibbonForm Class

Represents the Ribbon Form and has been calculated to display the C1Ribbon and C1StatusBar controls. The Ribbon Form allows the Ribbon to display its items in the TitleBar area.

Namespace: C1.Win.Ribbon
Assembly: C1.Win.Ribbon.4.8.dll
Syntax
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class C1RibbonForm : Form, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, ISupportUia, ISupportUiaContainer

Constructors

Name Description
C1RibbonForm()

Creates a new instance of C1RibbonForm.

Properties

Name Description
BackgroundColor

Gets or sets the background color for the C1RibbonForm.

CaptionFont

Gets or sets the Font that is used to display text in the title bar of the C1RibbonForm.

FormBorderStyle

Gets or sets the border style of the form.

MdiChildBorder

Gets or sets the size of the border, if this form is a mdi child form.

Ribbon

Gets the instance of a C1Ribbon control added to this C1RibbonForm.

RibbonStyle

Gets or sets a RibbonStyle object that is used for customization of appearance settings.

StatusBar

Gets the instance of a C1StatusBar control added to this C1RibbonForm.

Methods

Name Description
CreateHandle()

Creates the handle for the form.

Dispose(bool)

Clean up any resources being used.

GetDeviceDpi()

Gets the DPI value for the display device where the control is currently being displayed.

GetPreferredSize(Size)

Retrieves the size of a rectangular area into which a control can be fitted.

LayoutMdi(MdiLayout)

Arranges the multiple-document interface (MDI) child forms within the MDI parent form.

LogicalToDeviceThickness(Thickness)

Transforms a C1.Framework.Thickness from logical to device units by scaling it for the current DPI and rounding down to the nearest integer value for left, right, top and bottom.

LogicalToDeviceUnits(int, int, int, int)

Transforms a C1.Framework.Thickness from logical to device units by scaling it for the current DPI and rounding down to the nearest integer value for left, right, top and bottom.

OnActivated(EventArgs)

Raises the Activated event.

OnControlAdded(ControlEventArgs)

Raises the ControlAdded event.

OnControlRemoved(ControlEventArgs)

Raises the ControlRemoved event.

OnDeactivate(EventArgs)

Raises the Deactivate event.

OnDpiChanged(DpiChangedEventArgs)
OnHandleCreated(EventArgs)

Raises the HandleCreated event.

OnHandleDestroyed(EventArgs)

Raises the HandleDestroyed event.

OnMdiChildActivate(EventArgs)

Raises the MdiChildActivate event.

OnMouseWheel(MouseEventArgs)

Raises the MouseWheel event.

OnResize(EventArgs)

Raises the Resize event.

OnRightToLeftChanged(EventArgs)

Raises the RightToLeftChanged event.

OnRightToLeftLayoutChanged(EventArgs)

Raises the RightToLeftLayoutChanged event.

OnShown(EventArgs)

Raises the Layout event.

OnStyleChanged(EventArgs)

Raises the StyleChanged event.

OnVisibleChanged(EventArgs)

Raises the VisibleChanged event.

PreProcessMessage(ref Message)

Preprocesses keyboard or input messages.

ProcessCmdKey(ref Message, Keys)

Processes a command key.

ProcessKeyPreview(ref Message)

Previews a keyboard message.

ResetBackgroundColor()
ResumePainting()

Resumes painting after it has been suspended by a call to SuspendPainting().

ScaleControl(SizeF, BoundsSpecified)

Scales a control's location, size, padding and margin.

SetBoundsCore(int, int, int, int, BoundsSpecified)

Performs the work of setting the specified bounds of this control.

SetClientSizeCore(int, int)

Sets the size of the client area of the control.

ShouldSerializeBackgroundColor()
SuspendPainting()

Prevents from repainting a C1RibbonForm and its children while applying massive changes.

UpdateChildStyles(ThemeColor, ThemeLightness)

Switches the RibbonStyle and all styles of child controls (C1Ribbon and C1StatusBar) to the specified Office 365 theme.

WndProc(ref Message)

Processes Windows messages.