Class to provide simple functions for the rest of the framework.
Inheritance Hierarchy
ArtOfTest.CommonUtils
Namespace: ArtOfTest.Common
Assembly: ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax
The Utils type exposes the following members.
Methods
Name | Description | |
---|---|---|
Compress |
Compresses a file
| |
CropBitmap(Bitmap, Rectangle) |
Cuts a bitmap at the specified cut rectangle.
| |
CropBitmap(Bitmap, RectangleF) |
Cuts a bitmap at the specified cut rectangle.
| |
DateTimeToEpoch |
A method to convert DateTime to Epoch (number of seconds from 01.01.1970) used in JavaScript
| |
Decompress |
Decompresses a previously compressed file
| |
DeleteDirectoryWithFilesAndSubdirectories |
Deletes a directory and all its files and subdirectories.
| |
EscapeSingleQuotes | ||
FullDomainName | ||
GenerateHash |
Computes the hash of the given string. The default is to use the SHA1 algorithm.
| |
GetDateTimeIntersection |
Given two sets of DateTimes return the TimeSpan for which they overlap
| |
GetFirstVisibleControl | ||
GetPrimaryMonitorScale | ||
GetScaleFactorForMonitor | ||
GetSubstitutedFrameInfo | ||
IsVistaOrLater | ||
IsWin7OrLater | ||
JSGetContentWindowHeight | ||
JSGetContentWindowWidth | ||
QueryAssemblyInfo | ||
SwapT | ||
TryEnterRunOnceNamedLock |
See Also