-
Notifications
You must be signed in to change notification settings - Fork 1
Control
ProGraMajster edited this page Mar 28, 2026
·
1 revision
Provides animation-related properties for controls.
var control = new Control();| Name | Summary |
|---|---|
Anchor |
The current value of the anchor property. The anchor property determines which edges of the control are anchored to the container's edges. |
AutoSize |
Gets or sets a value indicating if this control's size can be changed automatically. |
BackgroundBrush |
Gets or sets the brush used to paint the control background. |
Bottom |
Gets the unscaled bottom location of the control. |
Bounds |
Gets or sets the unscaled bounds of the control. |
CanSelect |
Gets a value indicating the control can receive focus. |
Capture |
Gets or sets a value indicating the control is currently getting system mouse events. |
ClientRectangle |
Gets the scaled bounds of the control's canvas minus any borders. |
ClientSize |
Gets the scaled size of the control. |
ContextMenu |
Gets or sets the context menu that will be shown for the control. |
Controls |
Gets the collection of controls contained by the control. |
Created |
Indicates whether the control has been created. This property is read-only. |
CurrentStyle |
Gets the current style of this control instance. |
Cursor |
Gets or sets the mouse cursor to be shown when the mouse is over the control. |
DefaultCursor |
Gets the default cursor. |
DefaultMargin |
Gets the default margin of the control. |
DefaultMaximumSize |
Gets the default maximum size of the control. |
DefaultMinimumSize |
Gets the default minimum size of the control. |
DefaultPadding |
Gets the default padding of the control. |
DefaultSize |
Gets the default size of the control. |
DeviceDpi |
Gets the DPI of the current monitor. |
DisplayRectangle |
Gets the unscaled bounds of the displayed control. |
Disposing |
Indicates whether the control is in the process of being disposed. This property is read-only. |
Dock |
The dock property. The dock property controls to which edge of the container this control is docked to. For example, when docked to the top of the container, the control will be displayed flush at the top of the container, extending the length of the container. |
Enabled |
Gets or sets whether the control can be interacted with. |
Focused |
Gets whether this control currently has keyboard focus. |
HasChildren |
Gets a value indicating if control contains any child controls. |
Height |
Gets or sets the unscaled height of the control. |
ImplicitControl |
Internal control (like a scrollbar) that should not show up in Controls for a user. |
IsHovering |
Is the mouse currently over the control. |
LayoutEngine |
Gets the LayoutEngine for the current control. |
Left |
Gets or sets the unscaled left boundary of the control. |
Location |
Gets or sets the unscaled location of the control. |
Margin |
Gets or sets how much space there should be between the control and other controls. |
MaximumSize |
Gets or sets the maximum size for the control. |
MinimumSize |
Gets or sets the minimum size for the control. |
Name |
Gets or sets a user specified name for the control. The name can be used as a key into the ControlCollection. |
NeedsPaint |
Whether the control needs to be repainted. |
NonClientRectangle |
The full control canvas. |
Opacity |
Gets or sets the control opacity in the range from 0 to 1. |
PaddedClientRectangle |
The scaled control canvas minus any borders and Padding. |
Padding |
Gets or sets the amount of space there should be between the control bounds and the control contents. |
Parent |
Gets or sets the control that contains this control. |
PreferredSize |
Gets the size the control would prefer to be. |
Properties |
Retrieves our internal property storage object. If you have a property whose value is not always set, you should store it in here to save space. |
Right |
Gets the unscaled right boundary of the control. |
Rotation |
Gets or sets the render rotation of the control in degrees. |
ScaledBounds |
Gets the scaled bounds of the control. |
ScaledHeight |
Gets the scaled height of the control. |
ScaledLeft |
Gets the scaled left of the control. |
ScaledSize |
Gets the scaled size of the control. |
ScaledTop |
Gets the scaled top of the control. |
ScaledWidth |
Gets the scaled width of the control. |
ScaleFactor |
Gets the current scale factor of the control. |
ScaleX |
Gets or sets the horizontal render scale of the control. |
ScaleY |
Gets or sets the vertical render scale of the control. |
Scaling |
Gets the current scale factor of the form. |
Selected |
Gets a value indicating the control has focus. |
ShowFocusCues |
Gets a value indicating a focus rectangle should be drawn on the selected control. |
Size |
Gets or sets the unscaled size of the control. |
Style |
Gets the ControlStyle properties for this instance of the Control. |
StyleHover |
Gets the ControlStyle properties for this instance of the Control when the user is hovering over it. |
TabIndex |
Gets or sets a value indicating the order the control is selected when pressing tab. |
TabStop |
Gets or sets whether the control is selectable via pressing tab. |
Tag |
Gets or sets user defined data. |
Text |
Gets or sets the text of the control. |
Top |
Gets or sets the unscaled top boundary of the control. |
TranslationX |
Gets or sets the horizontal render translation of the control. |
TranslationY |
Gets or sets the vertical render translation of the control. |
Visible |
Gets or sets whether the control is displayed to the user. |
Width |
Gets or sets the unscaled width of the control. |
| Name | Summary |
|---|---|
#ctor |
Initializes a new instance of the Control class. |
AssignParent |
Assigns a new parent control. Sends out the appropriate property change notifications for properties that are affected by the change of parent. |
BringToFront |
Moves this control to the front zorder. |
CheckParentingCycle |
Searches the parent/owner tree for bottom to find any instance of toFind in the parent/owner tree. |
Contains |
Gets a value indicating if the specified control is parented to this control or any of its children. |
CreateControl |
This doesn't do much because we don't have native window handles, but having the created state allows us to avoid some stuff like layouts if the controls aren't actually being used yet. |
CreateControlsInstance |
Constructs the new instance of the Controls collection objects. Subclasses should not call base.CreateControlsInstance. |
Deselect |
Removes focus from the control. |
Dispose |
Disposes unmanaged resources used by the control. |
Finalize |
Destroys the control. |
FindAdapter |
Gets the ControlAdapter the control is parented to. |
FindForm |
Gets the Form that the control is parented to. |
FindWindow |
Gets the Window that the control is parented to. (Different from FindForm because it may return a PopupWindow.) |
FreeBackBuffer |
Releases the back buffer. |
GetAutoSizeMode |
Derived controls can use to provide a public AutoSizeMode property. |
GetBackBuffer |
Gets or creates a back buffer for rendering the control. |
GetContainerControl |
Returns the closest ContainerControl in the control's chain of parent controls and forms. |
GetControlBehavior |
Gets behavior flag value. |
GetExtendedState |
Retrieves the current value of the specified bit in the control's state2. |
GetNextControl |
Gets the next control in tab order. |
GetPositionInForm |
Gets the position of the Control relative to the Form. (Differs from normal when the Control is parented to other controls. |
GetPreferredSize |
Gets the size the control would prefer to be. |
GetScaledBounds |
Scales bounds by a specified factor. |
GetState |
Retrieves the current value of the specified bit in the control's state. |
Hide |
Hide this control from the user. |
InitLayout |
Called after the control has been added to another container. |
Invalidate |
Marks the entire control as needing to be redrawn. |
Invalidate |
Marks the specified portion of the control as needing to be redrawn. |
InvalidateAnimation |
Invalidates the control after a render transform value changes. |
IsMnemonic |
Determines if is the mnemonic character in . The mnemonic character is the character immediately following the first instance of "&" in text |
LogicalToDeviceUnits |
Converts an unscaled value to a scaled value. |
LogicalToDeviceUnits |
Converts an unscaled Padding to a scaled Padding. |
LogicalToDeviceUnits |
Converts an unscaled Size to a scaled Size. |
OnAutoSizeChanged |
Raises the AutoSizeChanged event. |
OnChildLayoutResuming |
Called when a child is about to resume its layout. The default implementation calls OnChildLayoutResuming on the parent. |
OnClick |
Raises the Click event. |
OnContextMenuChanged |
Raises the event. |
OnControlAdded |
Raises the event. |
OnControlRemoved |
Raises the event. |
OnCreateControl |
Called when the control is first created. |
OnCursorChanged |
Raises the CursorChanged event. |
OnDeselected |
Called when the control is deselected. |
OnDockChanged |
Raises the DockChanged event. |
OnDoubleClick |
Raises the DoubleClick event. |
OnEnabledChanged |
Raises the EnabledChanged event. |
OnGotFocus |
Raises the GotFocus event. |
OnInvalidated |
Raises the Invalidated event. |
OnKeyDown |
Raises the KeyDown event. |
OnKeyPress |
Raises the KeyPress event. |
OnKeyUp |
Raises the KeyUp event. |
OnLayout |
Raises the Layout event. |
OnLayoutResuming |
Called when the last resume layout call is made. If performLayout is true a layout will occur as soon as this call returns. Layout is still suspended when this call is made. The default implementation calls OnChildLayoutResuming on the parent, if it exists. |
OnLocationChanged |
Raises the LocationChanged event. |
OnMarginChanged |
Raises the MarginChanged event. |
OnMouseDown |
Raises the MouseDown event. |
OnMouseEnter |
Raises the MouseEnter event. |
OnMouseLeave |
Raises the MouseLeave event. |
OnMouseMove |
Raises the MouseMove event. |
OnMouseUp |
Raises the MouseUp event. |
OnMouseWheel |
Raises the MouseWheel event. |
OnPaddingChanged |
Raises the PaddingChanged event. |
OnPaint |
Paints the control. |
OnPaintBackground |
Paints the control's background. |
OnParentChanged |
Called when the Parent property is changed. |
OnParentEnabledChanged |
Called when the Parent's Enabled property is changed. |
OnParentVisibleChanged |
Called when the Parent's Visible property is changed. |
OnResize |
Raises the event. |
OnSizeChanged |
Raises the SizeChanged event. |
OnTabIndexChanged |
Raises the TabIndexChanged event. |
OnTabStopChanged |
Raises the TabStopChanged event. |
OnTextChanged |
Raises the TextChanged event. |
OnThemeChanged |
Called when the theme changes. |
OnVisibleChanged |
Raises the VisibleChanged event. |
PerformLayout |
Triggers the control to layout its children. |
PerformLayout |
Triggers the control to layout its children. |
PointToScreen |
Converts a point from control coordinates to monitor coordinates. |
RaiseClick |
Finds the correct control and calls its OnClick method. |
RaiseDoubleClick |
Finds the correct control and calls its OnDoubleClick method. |
RaiseKeyDown |
Finds the correct control and calls its OnKeyDown method. |
RaiseKeyPress |
Finds the correct control and calls its OnKeyPress method. |
RaiseKeyUp |
Finds the correct control and calls its OnKeyUp method. |
RaiseMouseDown |
Finds the correct control and calls its OnMouseDown method. |
RaiseMouseEnter |
Finds the correct control and calls its OnMouseEnter method. |
RaiseMouseLeave |
Finds the correct control and calls its OnMouseLeave method. |
RaiseMouseMove |
Finds the correct control and calls its OnMouseMove method. |
RaiseMouseUp |
Finds the correct control and calls its OnMouseUp method. |
RaiseMouseWheel |
Finds the correct control and calls its OnMouseWheel method. |
RaisePaint |
Calls the OnPaint method. |
RaisePaintBackground |
Calls the OnPaintBackground method. |
ResumeLayout |
Notifies the control to result performing layouts originally suspended with SuspendLayout. |
Scale |
Scales the control by the specified factor. |
ScaleCore |
Scales the control by the specified factor. |
Select |
Gives the control focus. |
SelectNextControl |
Moves focus to the next control. |
SelectNextIfFocused |
This is called recursively when visibility is changed for a control, this forces focus to be moved to a visible control. |
SendToBack |
Sends this control to the back of the zorder. |
SetAutoSizeMode |
Derived controls can use to provide a public AutoSizeMode property. |
SetBounds |
Sets the unscaled bounds of the control. |
SetBounds |
Sets the unscaled bounds of the control. |
SetBoundsCore |
Performs the work of setting the bounds of this control. Inheriting classes can override this function to add size restrictions. Inheriting classes must call base.setBoundsCore to actually cause the bounds of the control to change. |
SetControlBehavior |
Sets behavior flags. |
SetParentInternal |
Used to break a StackOverflow circular reference |
SetScaledBounds |
Sets the bounds of the control from scaled dimensions. |
SetVisibleCore |
Performs the logic needed to change a control's visibility. |
Show |
Shows this control to the user. |
SuspendLayout |
Suspends the layout logic for the control. |
TranslateMouseEvents |
Changes mouse events to control coordinates. |
UpdateBounds |
Updates the bounds of the control based on the bounds passed in. |
| Name | Summary |
|---|---|
AutoSizeChanged |
Raised when the AutoSize property is changed. |
Click |
Raised when this control is clicked. |
ContextMenuChanged |
Raised when the ContextMenu property is changed |
ControlAdded |
Raised when a new control is added. |
ControlRemoved |
Raised when a control is removed. |
CursorChanged |
Raised when the Cursor property is changed. |
DockChanged |
Raised when the Dock property is changed. |
DoubleClick |
Raised when this control is double-clicked. |
EnabledChanged |
Raised when the Enabled property is changed. |
GotFocus |
Raised when the control receives focus. |
Invalidated |
Raised when the Control is invalidated. |
KeyDown |
Raised when the user presses down a key. |
KeyPress |
Raised when the user presses a key. |
KeyUp |
Raised when the user releases a key. |
Layout |
Raised when the control performs a layout. |
LocationChanged |
Raised when the Location property is changed. |
MarginChanged |
Raised when the Margin property is changed. |
MouseDown |
Raised when a mouse button is pressed. |
MouseEnter |
Raised when the mouse cursor enters the control. |
MouseLeave |
Raised when the mouse cursor leaves the control. |
MouseMove |
Raised when the mouse cursor is moved within the control. |
MouseUp |
Raised when a mouse button ir released. |
MouseWheel |
Raised when a mouse wheel is rotated. |
PaddingChanged |
Raised when the Padding property is changed. |
ParentChanged |
Raised when the Parent property is changed. |
Resize |
Raised when the control is resized. |
SizeChanged |
Raised when the Size property is changed. |
TabIndexChanged |
Raised when the TabIndex property is changed. |
TabStopChanged |
Raised when the TabStop property is changed. |
TextChanged |
Raised when the Text property is changed. |
VisibleChanged |
Raised when the Visisble property is changed. |
- This page was generated from the public XML documentation of
ModernFormsNext. - Base members inherited from
Control,ScrollableControl,WindowBase, or other parent types may not all be repeated here.
- Home
-
API Reference
- AccessibleEvents
- AccessibleNavigation
- AccessibleObject
- AccessibleObjectNotificationEventArgs
- AccessibleRole
- AccessibleSelection
- AccessibleStates
- PlatformAccessibleObjectAdapter
- QueryAccessibilityHelpEventArgs
- QueryAccessibilityHelpEventHandler
- AnchorStyles
- Animation
- AnimationManager
- ControlAnimationEffects
- ControlAnimationExtensions
- Easings
- Application
- ArrowDirection
- AutoSizeMode
- BorderSideStyle
- BorderStyle
- BoundsSpecified
- BuiltInTheme
- Button
- CheckBox
- CheckState
- Clipboard
- ColorBox
- ColorDialog
- ColumnStyle
- ComboBox
- CommonDialog
- ContentAlignment
- ContextMenu
- Control
- ControlAccessibleObject
- ControlCollection
- ControlBehaviors
- ControlPaint
- ControlStyle
- Cursor
- Cursors
- BaseCollection
- BindableComponent
- Binding
- BindingCompleteContext
- BindingCompleteEventArgs
- BindingCompleteEventHandler
- BindingCompleteState
- BindingContext
- BindingManagerBase
- BindingManagerDataErrorEventArgs
- BindingManagerDataErrorEventHandler
- BindingMemberInfo
- BindingsCollection
- BindingSource
- BindingValueFormatter
- ControlBindingsCollection
- ControlUpdateMode
- ConvertEventArgs
- ConvertEventHandler
- CurrencyManager
- DataSourceUpdateMode
- IBindableComponent
- ICommandExecutor
- ICurrencyManagerProvider
- ItemChangedEventArgs
- ItemChangedEventHandler
- ListBindingConverter
- ListBindingHelper
- ListManagerBindingsCollection
- PropertyManager
- RelatedCurrencyManager
- DataGridView
- DataGridViewCell
- DataGridViewCellCollection
- DataGridViewCellEditEventArgs
- DataGridViewColumn
- DataGridViewColumnCollection
- DataGridViewColumnHeaderCell
- DataGridViewHeaderCell
- DataGridViewRow
- DataGridViewRowCollection
- DataGridViewRowHeaderCell
- DataGridViewSelectionMode
- DateTimePicker
- DateTimePickerCalendar
- DateTimePickerFormat
- DialogResult
- DockStyle
- Brush
- GlassBrush
- GradientBrush
- GradientStop
- LinearGradientBrush
- RadialGradientBrush
- SolidColorBrush
- SweepGradientBrush
- DrawingExtensions
- EventArgs`1
- FileDialog
- FileSystemDialog
- FlowDirection
- FlowLayoutPanel
- FlowLayoutSettings
- FolderBrowserDialog
- Font
- FontDialog
- FontDialogRenderingMode
- FontStyle
- Form
- FormCollection
- FormStartPosition
- FormTitleBar
- TitleBarButtonGlyph
- FormWindowState
- Help
- HelpEventArgs
- HelpEventHandler
- HelpNavigator
- HelpProvider
- HorizontalAlignment
- HorizontalScrollBar
- HueSlider
- IContainerControl
- ILayoutable
- ImageCollection
- ImageList
- InsertKeyMode
- KeyEventArgs
- KeyPressEventArgs
- Keys
- Label
- ContainerProxy
- ElementProxy
- TopDownProxy
- VerticalElementProxy
- LayoutEngine
- PropertyStore
- IntegerEntry
- ObjectEntry
- ContainerInfo
- LayoutInfo
- LayoutEventArgs
- LayoutSettings
- LinkArea
- LinkBehavior
- LinkLabel
- Link
- LinkCollection
- LinkLabelLinkClickedEventArgs
- LinkState
- ListBox
- ListBoxItemCollection
- ListView
- ListViewItem
- ListViewItemCollection
- MaskedTextBox
- MaskFormat
- MaskInputRejectedEventArgs
- MaskInputRejectedEventHandler
- Menu
- MenuBase
- MenuDropDown
- MenuItem
- MenuItemCollection
- MenuSeparatorItem
- MessageBoxForm
- MouseButtons
- MouseEventArgs
- NavigationPane
- NavigationPaneItem
- NavigationPaneItemCollection
- NotifyIcon
- NotifyIconActivationBehavior
- NotifyIconBalloonIcon
- NotifyIconContextMenu
- NotifyIconMenuItem
- NotifyIconMenuItemCollection
- NotifyIconMenuSeparatorItem
- NumericUpDown
- NumericUpDownTextBox
- OpenFileDialog
- Orientation
- Padding
- PaintEventArgs
- Panel
- PictureBox
- PictureBoxSizeMode
- PopupWindow
- ProgressBar
- RadioButton
- ButtonRenderer
- CheckBoxRenderer
- ColorBoxRenderer
- ComboBoxRenderer
- DataGridViewRenderer
- DateTimePickerRenderer
- FormTitleBarRenderer
- HueSliderRenderer
- IRenderGlyph
- IRenderTextAndImage
- LabelRenderer
- LinkLabelRenderer
- ListBoxRenderer
- ListViewRenderer
- MenuDropDownRenderer
- MenuRenderer
- NavigationPaneRenderer
- NumericUpDownRenderer
- PanelRenderer
- PictureBoxRenderer
- ProgressBarRenderer
- RadioButtonRenderer
- Renderer
- Renderer`1
- RenderManager
- RibbonRenderer
- ScrollableControlRenderer
- ScrollBarRenderer
- SplitContainerRenderer
- SplitterRenderer
- StatusBarRenderer
- TabControlRenderer
- TabStripRenderer
- TextBoxRenderer
- ToolBarRenderer
- TrackBarRenderer
- TreeViewRenderer
- Ribbon
- RibbonItemGroup
- RibbonItemGroupCollection
- RibbonTabPage
- RibbonTabPageCollection
- RowStyle
- SaveFileDialog
- ScrollableControl
- ScrollBar
- ScrollBars
- ScrollControl
- ScrollEventArgs
- ScrollEventType
- ScrollOrientation
- ScrollProperties
- SelectionMode
- SizeType
- SkiaExtensions
- SkiaTextExtensions
- SortOrder
- SplitContainer
- Splitter
- StatusBar
- TabControl
- TableLayoutCellPaintEventArgs
- TableLayoutColumnStyleCollection
- TableLayoutControlCollection
- TableLayoutPanel
- TableLayoutPanelCellBorderStyle
- TableLayoutPanelCellPosition
- TableLayoutPanelGrowStyle
- TableLayoutRowStyleCollection
- TableLayoutSettings
- TableLayoutStyle
- TableLayoutStyleCollection
- TabPage
- TabPageCancelEventArgs
- TabPageCollection
- TabPageEventArgs
- TabStrip
- TabStripItem
- TabDisplayMode
- TabStripItemCollection
- TabStripItemEventArgs
- TextBox
- TextImageRelation
- TextMeasurer
- TextSelection
- Theme
- TickStyle
- Timer
- ToolBar
- TrackBar
- TreeView
- TreeViewControlStyle
- TreeViewDrawEventArgs
- TreeViewDrawMode
- TreeViewItem
- TreeViewItemElement
- TreeViewItemCollection
- TypeValidationEventArgs
- TypeValidationEventHandler
- VerticalScrollBar
- WindowBase