CommonHelper Methods |
The CommonHelper type exposes the following members.
Name | Description | |
---|---|---|
AddControlToParent |
Add the provided control to a parent collection.
| |
ApplyPadding(Orientation, Rectangle, Padding) |
Return the provided rectangle with orientation specific padding applied.
| |
ApplyPadding(Orientation, Size, Padding) |
Return the provided size with orientation specific padding applied.
| |
ApplyPadding(VisualOrientation, Rectangle, Padding) |
Return the provided rectangle with visual orientation specific padding applied.
| |
ApplyPadding(VisualOrientation, Size, Padding) |
Return the provided size with visual orientation specific padding applied.
| |
BlackenColor |
Blacken a provided color by applying per channel percentages.
| |
BoolToString |
Convert a Boolean to a culture invariant string value.
| |
ButtonStyleToPalette |
Convert from ButtonStyle to PaletteButtonStyle.
| |
CheckContextMenuForShortcut |
Check a short cut menu for a matching short and invoke that item if found.
| |
ClientMouseMessageToScreenPt |
Convert a client mouse position inside a windows message into a screen position.
| |
ColorDepth |
Get the number of bits used to define the color depth of the display.
| |
ColorToBlackAndWhite |
Convert the color to a black and white color.
| |
ColorToString |
Convert a Color to a culture invariant string value.
| |
ContentStyleFromLabelStyle |
Find the appropriate content style to match the incoming label style.
| |
CreateInstance |
Create new instance of specified type within the designer host, if provided.
| |
DesignMode |
Discover if the component is in design mode.
| |
DestroyInstance |
Destroy instance of an object using the provided designer host.
| |
DoubleToString |
Convert a double to a culture invariant string value.
| |
GetControlWithFocus |
Search the hierarchy of the provided control looking for one that has the focus.
| |
GetRightToLeftLayout |
Gets the form level right to left setting.
| |
GetWindowRealNCMargin |
Gets the size of the borders requested by the real window.
| |
HasABorder |
Gets a value indicating if the enumeration specifies at least one border.
| |
HasAllBorders |
Gets a value indicating if the enumeration specifies all four borders.
| |
HasBottomBorder |
Gets a value indicating if the enumeration includes the bottom border.
| |
HasLeftBorder |
Gets a value indicating if the enumeration includes the left border.
| |
HasNoBorders |
Gets a value indicating if the enumeration specifies no borders.
| |
HasOneBorder |
Gets a value indicating if the enumeration specifies at least one border.
| |
HasRightBorder |
Gets a value indicating if the enumeration includes the right border.
| |
HasTopBorder |
Gets a value indicating if the enumeration includes the top border.
| |
ImageToXmlCData |
Convert a Image to a culture invariant string value.
| |
IsFormMaximized |
Discover if the provided Form is currently maximized.
| |
IsFormMinimized |
Discover if the provided Form is currently minimized.
| |
IsOverrideState |
Gets a value indicating if the provided value is an override state.
| |
IsOverrideStateExclude |
Gets a value indicating if the provided value is an override state but excludes one value.
| |
LogOutput |
Output some debug data to a log file that exists in same directory as the application.
| |
MakeCustomDateFormat |
Ensure that a single character format string is treated as a custom format.
| |
MergeColors(Color, Single, Color, Single) |
Merge two colors together using relative percentages.
| |
MergeColors(Color, Single, Color, Single, Color, Single) |
Merge three colors together using relative percentages.
| |
OrientateDrawBorders |
Apply an orientation to the draw border edges to get a correct value.
| |
OrientatePadding |
Modify the incoming padding to reflect the visual orientation.
| |
PaletteTextHintToRenderingHint |
Convert from palette rendering hint to actual rendering hint.
| |
PerformOperation |
Perform operation in a worker thread with wait dialog in main thread.
| |
PointToString |
Convert a Point to a culture invariant string value.
| |
RealClientRectangle |
Gets the real client rectangle of the list.
| |
RemoveControlFromParent |
Remove the provided control from its parent collection.
| |
ReverseOrientateDrawBorders |
Apply a reversed orientation so that when orientated again it comes out with the original value.
| |
RoundedRectanglePath |
Create a graphics path that describes a rounded rectangle.
| |
SeparatorStyleToMetricPadding |
Get the correct metric padding for the provided separator style.
| |
SizeToString |
Convert a Size to a culture invariant string value.
| |
StringToBool |
Convert a culture invariant string value to a Boolean.
| |
StringToColor |
Convert a culture invariant string value to a Color.
| |
StringToDouble |
Convert a culture invariant string value to a double.
| |
StringToPoint |
Convert a culture invariant string value to a Point.
| |
StringToSize |
Convert a culture invariant string value to a Size.
| |
SwapRectangleSizes |
Swap the width and height values for the rectangle.
| |
TextToXmlAttribute(XmlWriter, String, String) |
Only persist the provided name/value pair as an Xml attribute if the value is not null or empty.
| |
TextToXmlAttribute(XmlWriter, String, String, String) |
Only persist the provided name/value pair as an Xml attribute if the value is not null/empty and not the default.
| |
ValidContextMenuStrip |
Decide if the context menu strip should be displayed.
| |
ValidKryptonContextMenu |
Decide if the KryptonContextMenu should be displayed.
| |
VisualToOrientation |
Convert from VisualOrientation to Orientation.
| |
WhitenColor |
Whiten a provided color by applying per channel percentages.
| |
XmlAttributeToText(XmlReader, String) |
Read the named attribute value but if no attribute is found then an empty string.
| |
XmlAttributeToText(XmlReader, String, String) |
Read the named attribute value but if no attribute is found then return the provided default.
| |
XmlCDataToImage |
Convert a culture invariant string value into an Image.
|