Document Library for WPF | ComponentOne
C1.WPF.Document.4.6.2 Assembly / C1.WPF.Document Namespace / Utils Class
Fields Methods


In This Topic
    Utils Class Members
    In This Topic

    The following tables list the members exposed by Utils.

    Public Fields
     NameDescription
    Public Fieldstatic (Shared in Visual Basic)  
    Public Fieldstatic (Shared in Visual Basic)  
    Public Fieldstatic (Shared in Visual Basic)  
    Top
    Public Methods
     NameDescription
    Public Methodstatic (Shared in Visual Basic)Compares two object arrays using AreObjectsEqual method, returns true if arrays have same size and contains same objects.  
    Public Methodstatic (Shared in Visual Basic)Compares two objects using Equals() methods, returns true if both objects are null. Null and System.DBNull interpretted as same values.  
    Public Methodstatic (Shared in Visual Basic)For internal use.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Assigns all from another object.  
    Public Methodstatic (Shared in Visual Basic)Converts BarCodeEnum value to C1.BarCode.CodeType value.  
    Public Methodstatic (Shared in Visual Basic)Compares two strings, could be used in Xaml and WinForms.  
    Public Methodstatic (Shared in Visual Basic)Copies content of one stream to another.  
    Public Methodstatic (Shared in Visual Basic)Substracts half of left, top etc from the appropriate edge of the rect.  
    Public Methodstatic (Shared in Visual Basic)Search the index of specified element in array of numbers.  
    Public Methodstatic (Shared in Visual Basic)Finds instances of text in a string.  
    Public Methodstatic (Shared in Visual Basic)Gets the resolution for the specified device context.  
    Public Methodstatic (Shared in Visual Basic)Determines if the flags match the mask.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Gets the image from embedded resource.  
    Public Methodstatic (Shared in Visual Basic)Searches for the specified interface, specifying whether to do a case-insensitive search for the interface name.  
    Public Methodstatic (Shared in Visual Basic)Searches for the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints.  
    Public Methodstatic (Shared in Visual Basic)Gets minimal and maximal numbers.  
    Public Methodstatic (Shared in Visual Basic)Gets the text which is "near" to specified position.  
    Public Methodstatic (Shared in Visual Basic)Returns default instance parameter-less constructor for the specified type.  
    Public Methodstatic (Shared in Visual Basic)Searches for the specified property whose parameters match the specified argument types and modifiers, using the specified binding constraints.  
    Public Methodstatic (Shared in Visual Basic)Returns the relative path, for example: GetRelativePath("c:\temp", "c:\temp\qq\zz.txt") returns "qq\zz.txt".  
    Public Methodstatic (Shared in Visual Basic)Gets the resource image.  
    Public Methodstatic (Shared in Visual Basic)Gets resource stream from specified assembly.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Get string of embedded resource.  
    Public Methodstatic (Shared in Visual Basic)Gets the word in the text near to specified position.  
    Public Methodstatic (Shared in Visual Basic)Adds half of left, top etc to the appropriate edge of the rect.  
    Public Methodstatic (Shared in Visual Basic)Determines if task cancelled by an exception used to communicate task cancellation.  
    Public Methodstatic (Shared in Visual Basic)Determines if the culture name is the same.  
    Public Methodstatic (Shared in Visual Basic)Returns a value indicating whether a value is null, System.DBNull or empty array.  
    Public Methodstatic (Shared in Visual Basic)Gets a value indicating whether the current Type represents an enumeration.  
    Public Methodstatic (Shared in Visual Basic)Returns a value indicating whether a value is null or System.DBNull.  
    Public Methodstatic (Shared in Visual Basic)Checks whether object represents numeric value, i.e. it is byte, integer, float etc.  
    Public Methodstatic (Shared in Visual Basic)Gets a value indicating whether the Type is a value type.  
    Public Methodstatic (Shared in Visual Basic)Determines if the entire word is contained in the specified string.  
    Public Methodstatic (Shared in Visual Basic)Reads a Metafile from a byte array.  
    Public Methodstatic (Shared in Visual Basic)Tests two sizes for equality allowing a small margin for rounding errors.  
    Public Methodstatic (Shared in Visual Basic)Sets the flags by mask.  
    Public Methodstatic (Shared in Visual Basic)Swaps two values.  
    Public Methodstatic (Shared in Visual Basic)Converts value in pixels to the value in twips.  
    Public Methodstatic (Shared in Visual Basic)Checks whether object represents numeric value, i.e. it is byte, integer, float etc and converts it to double. Returns false if object is not number.  
    Public Methodstatic (Shared in Visual Basic)Tries convert object to double.  
    Public Methodstatic (Shared in Visual Basic)Check specified string and removed all characters which can not be in file name.  
    Public Methodstatic (Shared in Visual Basic)Writes specified image to file.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Writes specified image to stream.  
    Public Methodstatic (Shared in Visual Basic)Serializes a System.Drawing.Imaging.Metafile to a disk file.  
    Public Methodstatic (Shared in Visual Basic)Writes a metafile to a byte array.  
    Public Methodstatic (Shared in Visual Basic)Serializes a System.Drawing.Imaging.Metafile to a System.IO.Stream.  
    Top
    See Also