The following tables list the members exposed by Utils.
Public Fields
Public Methods
| Name | Description |
| AreObjectArraysEqual | Compares two object arrays using AreObjectsEqual method, returns true if arrays have same size and contains same objects. |
| AreObjectsEqual | Compares two objects using Equals() methods, returns true if both objects are null. Null and System.DBNull interpretted as same values. |
| AsNumber | For internal use. |
| Assign | Overloaded. |
| BarCodeEnumToCodeType | Converts BarCodeEnum value to C1.BarCode.CodeType value. |
| Compare | Compares two strings, could be used in Xaml and WinForms. |
| CopyStream | Copies content of one stream to another. |
| DeflateHalfLine | Substracts half of , etc from the appropriate edge of the . |
| FastFind | |
| FindTextInstances | Finds instances of text in a string. |
| GetDcDpi | Gets the resolution for the specified device context. |
| GetFlag | |
| GetImageEmbeddedResource | Overloaded. |
| GetInterface | |
| GetMethod | |
| GetMinMax | |
| GetNearText | Gets the text which is "near" to specified position. |
| GetParameterlessCtor | Returns default instance parameter-less constructor for the specified type. |
| GetProperty | |
| GetRelativePath | Returns the relative path, for example: GetRelativePath("c:\temp", "c:\temp\qq\zz.txt") returns "qq\zz.txt". |
| GetResourceImage | |
| GetResourceStream | Gets resource stream from specified assembly. |
| GetStringEmbeddedResource | Overloaded. |
| GetWord | Gets the word in the text near to specified position. |
| InflateHalfLine | Adds half of , etc to the appropriate edge of the . |
| IsCancelled | |
| IsCulturesSame | |
| IsEmpty | Returns a value indicating whether a value is null, System.DBNull or empty array. |
| IsEnum | Gets a value indicating whether the current Type represents an enumeration. |
| IsNull | Returns a value indicating whether a value is null or System.DBNull. |
| IsNumber | Checks whether object represents numeric value, i.e. it is byte, integer, float etc. |
| IsValueType | Gets a value indicating whether the Type is a value type. |
| IsWholeWord | |
| ReadMetafileFromMemory | Reads a System.Drawing.Imaging.Metafile from a byte array. |
| SamePaperSizes | Tests two sizes for equality allowing a small margin for rounding errors. |
| SetFlag | |
| Swap<T> | Swaps two values. |
| ToTwips | Converts value in pixels to the value in twips. |
| TryAsNumber | 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. |
| TryObjectAsDouble | Tries convert object to double. |
| ValidateFileName | Check specified string and removed all characters which can not be in file name. |
| WriteImageToFile | Writes specified image to file. |
| WriteImageToStream | Writes specified image to stream. |
| WriteMetafileToFile | Serializes a System.Drawing.Imaging.Metafile to a disk file. |
| WriteMetafileToMemory | Writes a System.Drawing.Imaging.Metafile to a byte array. |
| WriteMetafileToStream | Serializes a System.Drawing.Imaging.Metafile to a System.IO.Stream. |
Top
See Also