FormExtensions Class

Contains custom extension methods to use with Form.

Definition

Namespace: DevCase.Extensions.FormExtensions
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[HideModuleNameAttribute]
public sealed class FormExtensions
Inheritance
Object    FormExtensions

Methods

AddComponents Adds the specified components to the ComponentCollection of the source Form.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
ForEachControl(Form, Boolean, ActionControl) Iterate through all the controls in the source Form and performs the specified action on each one.
ForEachControlT(Form, Boolean, ActionControl) Iterate through all the controls of the specified type in the source Form and performs the specified action on each one.
GetComponents(Form) Gets the components associated to the source Form.
GetComponentsT(Form) Gets the components associated to the source Form.
GetEventHandlers Gets all the delegates associated to the specified event raised by the source Form.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetHorizontalBorderSize Gets the size of the horizontal border (the border of the top or bottom edge) of the source Form.
GetNextControlT(Form, Boolean, Boolean, Boolean) Retrieves the next control of the specified type forward or back in the tab order of child controls.
GetNextControlT(Form, Boolean, Boolean, Boolean, ControlControlCollection) Retrieves the next control of the specified type forward or back in the tab order of child controls.
GetTitleBarBounds Gets the titlebar bounds of the source Form.
GetType Gets the Type of the current instance.
(Inherited from Object)
GetVerticalBorderSize Gets the size of the vertical border (the border of the left or right edge) of the source Form.
InvokeUITypeEditorT(Form, PropertyDescriptor) Invokes the default UITypeEditor to edit the specified property.
InvokeUITypeEditorT(Form, String) Invokes the default UITypeEditor to edit the specified property.
LockFormRegionToControls(Form) Locks the window region of the specified Form to the bounds of its child controls.
LockFormRegionToControlsT(Form) Locks the window region of the specified Form to the bounds of its child controls of the specified Type.
RemoveComponents Removes the specified components from the ComponentCollection of the source Form.
ResumeDrawing(Form) Allow the source Form to be redrawn.

By calling this method, it will allow painting events to be fired on the source Form.

ResumeDrawing(Form, Boolean) Allow the source Form to be redrawn.

By calling this method, it will allow painting events to be fired on the source Form.

SetVisualTheme Changes the color appearance of the source Form using the specified theme.
SuspendDrawing Prevents the source Form from being redrawn.

By calling this method, it will disallow painting events from firing on the source Form.

ToString Returns a string that represents the current object.
(Inherited from Object)

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also