Version

Utilities Class Members

The following tables list the members exposed by Utilities.

Public Properties
 NameDescription
Public Propertystatic (Shared in Visual Basic)CanAssert  
Public Propertystatic (Shared in Visual Basic)IsHighContrastGets whether the system should render controls with high contrast.  
Public Propertystatic (Shared in Visual Basic)IsWin10OrLaterGets a value indicating whether the OS is win10 or later.  
Public Propertystatic (Shared in Visual Basic)IsWin11OrLaterGets a value indicating whether the OS is win11 or later.  
Public Methods
 NameDescription
Public Methodstatic (Shared in Visual Basic)AddMessageFilterAdds a message filter to monitor Windows messages as they are routed to their destinations.  
Public Methodstatic (Shared in Visual Basic)AddPreFilterMessageFilterAdds a message filter to the top of the list to monitor Windows messages as they are routed to their destinations.  
Public Methodstatic (Shared in Visual Basic)AdjustRectangleForBordersAdjusts the rectangle for borders.  
Public Methodstatic (Shared in Visual Basic)CaptureScreenOverloaded. Captures a snapshot of portion of the screen.  
Public Methodstatic (Shared in Visual Basic)CopyGraphicsCopies the contents of one graphics object to another based on the supplied source rectangle and destination point.  
Public Methodstatic (Shared in Visual Basic)CopyToClipboardHelper method to invoke the Clipboard.SetDataObject method.  
Public Methodstatic (Shared in Visual Basic)CreateLargestFontOverloaded. Creates the largest of the fonts among the specified appearances.  
Public Methodstatic (Shared in Visual Basic)CreatePenOverloaded. Returns a System.Drawing.Pen representing the color.  
Public Methodstatic (Shared in Visual Basic)CreateSolidBrushReturns a System.Drawing.SolidBrush representing the color.  
Public Methodstatic (Shared in Visual Basic)DefaultCompareOverloaded. Compares the two specified objects, if possible.  
Public Methodstatic (Shared in Visual Basic)DragScrollTimerIntervalFromDeltaReturns the suggested number of milliseconds for a drag scroll timer based on the specified delta and linear screen size.  
Public Methodstatic (Shared in Visual Basic)DrawControlToBitmapRenders a control into the specified bitmap.  
Public Methodstatic (Shared in Visual Basic)EnableFormCloseButtonChanges the enabled state of a Form's Close button.  
Public Methodstatic (Shared in Visual Basic)EnterNativeMessageFilterModeThis method is used to request that all Infragistics objects using the AddMessageFilter methods receive their notifications from a native windows operating system hook instead of attempting to use the .Net Application messagefilter infrastructure.  
Public Methodstatic (Shared in Visual Basic)ExitNativeMessageFilterModeThis method is used to remove a request placed by a call to EnterNativeMessageFilterMode. When all of the requests have been removed, the default calculation will be used to determine whether a native or .net message filter implemenation will be used.  
Public Methodstatic (Shared in Visual Basic)FindContainedComponentByNameDoes a recursive search through the container's descendant controls and components and returns the component with the specified name.  
Public Methodstatic (Shared in Visual Basic)FindContainedControlByNameDoes a recursive search through the container's descendant controls and returns the control with the specified name.  
Public Methodstatic (Shared in Visual Basic)FocusControlWithoutScrollingIntoViewFocuses a control without scrolling it into view if it is contained in a ScrollableControl.  
Public Methodstatic (Shared in Visual Basic)ForceNativeMessageFilterThis method is used to force all Infragistics objects using the AddMessageFilter methods to receive their notifications from a native windows operating system hook instead of attempting to use the .Net Application messagefilter infrastructure.  
Public Methodstatic (Shared in Visual Basic)GetDistanceReturns the distance between two points.  
Public Methodstatic (Shared in Visual Basic)GetFirstLineOfStringReturns the first line of text from the specified string, omitting newline characters as well as all text following the first occurrence of the newline character.  
Public Methodstatic (Shared in Visual Basic)GetFirstMnemonicCharOverloaded. Returns the first mnemonic character found in a string.  
Public Methodstatic (Shared in Visual Basic)GetFontForZoomFactorCreate a font from a base font and a zoom factor. If the zoom factor is equal to 1, this method simply returns the base font.  
Public Methodstatic (Shared in Visual Basic)GetInheritanceAttributeGets the InheritanceAttribute of an object.  
Public Methodstatic (Shared in Visual Basic)GetLocalizedKeyStringOverloaded. Returns the localized string for the specified Keys  
Public Methodstatic (Shared in Visual Basic)GetLocalizedShortcutStringOverloaded. Returns the localized  
Public Methodstatic (Shared in Visual Basic)GetLocalizedStringGets the localized string from the win assembly.  
Public Methodstatic (Shared in Visual Basic)GetNextCheckStateReturns the next CheckState value for the specified checkState, based on whether the returned value can include the indeterminate state.  
Public Methodstatic (Shared in Visual Basic)GetNonSystemColorReturns a color that is not flagged as a system color.  
Public Methodstatic (Shared in Visual Basic)GetParentGets the parent of the specified control.  
Public Methodstatic (Shared in Visual Basic)GetPrimaryScreen  
Public Methodstatic (Shared in Visual Basic)GetRectangleForZoomFactorOverloaded. Creates a new rectangle based on the provided base rectangle and the zoom factor.  
Public Methodstatic (Shared in Visual Basic)GetTextHeightSupport For Whidbey SnapLines Gets the height of text used to calculate a Text BaseLine SnapLine  
Public Methodstatic (Shared in Visual Basic)GetTimeZonesReturns an array list of TimeZoneInfo objects.  
Public Methodstatic (Shared in Visual Basic)GetUnderlyingTypeTakes a Type and returns the underlying (non-nullable) type, if the Type is nullable. If the specified type is not nullable, then the passed-in type is returned.  
Public Methodstatic (Shared in Visual Basic)GetZoomedValueOverloaded. Scales the value based on the zoomFactor of the control.  
Public Methodstatic (Shared in Visual Basic)IsActiveControlChecks the parent chain of IContainerControls to ensure that the specified control is the resolved active control. In other words, that the control is the active control of its container control which is the active control of its container control, etc.  
Public Methodstatic (Shared in Visual Basic)IsActiveFormRelatedOverloaded. Determines if the current active form is related to a control.  
Public Methodstatic (Shared in Visual Basic)IsControlOnActiveFormOverloaded. Determines if the control is on the active form.  
Public Methodstatic (Shared in Visual Basic)IsDataMemberChangeRequiredReturns true if the data member should be changed.  
Public Methodstatic (Shared in Visual Basic)IsFormActiveDetermines if the form is the active form. This will also return true if any owned forms are active.  
Public Methodstatic (Shared in Visual Basic)IsFormOrOwnedFormActiveGets the value which indicates whether the specified form or any forms owned by the specified form are active.  
Public Methodstatic (Shared in Visual Basic)IsHotTrackedIndicates if a button using the specified state should be considered as hottracked.  
Public Methodstatic (Shared in Visual Basic)IsNullableTypeReturns true if the specified type is a generic nullable type; otherwise false.  
Public Methodstatic (Shared in Visual Basic)IsNumericTypeDetermines if a given System.Type is a numeric type.  
Public Methodstatic (Shared in Visual Basic)IsPressedIndicates if a button using the specified state should be considered as pressed.  
Public Methodstatic (Shared in Visual Basic)IsTouchSupportedOverloaded. Returns a boolean value indicating whether the local machine supports a touch-enabled input digitizer.  
Public Methodstatic (Shared in Visual Basic)NumberContainsNoFractionalPartDetermines whether or not a number has a fractional part.  
Public Methodstatic (Shared in Visual Basic)ParseShortcutStringOverloaded. Parses a localized string and returns the corresponding Shortcut enumeration.  
Public Methodstatic (Shared in Visual Basic)PointToScreenGets the Point in screen coordinates taking resolution scaling into account.  
Public Methodstatic (Shared in Visual Basic)RectangleToScreenGets the Rectangle in screen coordinates taking resolution scaling into account.  
Public Methodstatic (Shared in Visual Basic)RefreshMessageFilterRefreshes any message filters in use by Infragistics controls.  
Public Methodstatic (Shared in Visual Basic)RemoveMessageFilterRemoves a message filter from the message pump of the application.  
Public Methodstatic (Shared in Visual Basic)ReplaceSubStringReplaces a substring within the original text with some new, replacement text.  
Public Methodstatic (Shared in Visual Basic)ScreenFromPointReturns the screen containing the largest portion or closest to the specified System.Drawing.Point  
Public Methodstatic (Shared in Visual Basic)ScreenFromRectangleReturns the screen containing the largest portion or closest to the specified System.Drawing.Rectangle  
Public Methodstatic (Shared in Visual Basic)SortMergeOverloaded. Sorts the passed in array list based on the passed in comparer using a modified merge-sort algorithm.  
Public Methodstatic (Shared in Visual Basic)SortMergeGenericOverloaded. Sorts the passed in list based on the passed in comparer using a modified merge-sort algorithm.  
Public Methodstatic (Shared in Visual Basic)StripDiacriticsStrips diacritics from a string.  
Public Methodstatic (Shared in Visual Basic)StripMnemonicsStrips mnemonics from a string.  
Public Methodstatic (Shared in Visual Basic)StrLikeDoes a 'like' comparison on two strings and determines if the source string matches the specified pattern  
Public Methodstatic (Shared in Visual Basic)VerifySelStartAndSelLengthAdjusts selStart and SelLength do that they are valid values based on the length of the text.  
See Also