BCGSoft.Shared Namespace : GlobalUtils Class |
The Global Utils class represents a set of static function specific for working with command bars and docking bars. Function AlignRectToRect, AlignRectToRectInner, AlignRectToRectOuter, ExcludeRectangle specify the bounds of the rectangle to which a control should be docked according to current bounds of the docking pane, its dockstyle. For specification of the current DockEdge and DockStyle used such functions as IndexToDockEdge, DockStyleFromDockEdge, DockEdgeFromDockStyle, GetOppositeEdge, EdgeFromHitTest. The function IsPointNearEdge defines the proximitity of the current point to the docking edge. SendNCMessage, ForwardMouseMessage function posts the messages on mouse events to the top-level control.
Function CopyBitmapToClipboard returns a copy of the specified bitmap with certain transparency. Function IsInstanceOfType indicates if the object has a specified type. Function AdjustRectToWorkingArea allows to put the bounds of any control into the bounds of the screen that can be used by applications. In ControlBar.NET this function is used for location of the popup menus on the area of the screen. ReadColorValue function allows to get a string value of color from the XML node and translate it to the System.Drawing.Color and for translation a function StringToColor is used. For reading variable of types System.Drawing.Size, System.Drawing.Rectangle, System.Windows.Forms.Padding functions StringToSize, StringToRect, StringToPadding are used.
'Declaration Public Class GlobalUtils
'Usage Dim instance As GlobalUtils
public class GlobalUtils
public __gc class GlobalUtils
public ref class GlobalUtils
System.Object
BCGSoft.Shared.GlobalUtils
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2