Class ExtensionsPublic
- Namespace
- Alternet.UI.Extensions
- Assembly
- Alternet.UI.Common.dll
Contains extension methods for the different classes.
public static class ExtensionsPublic
- Inheritance
-
ExtensionsPublic
Methods
- Abs(double)
Returns the absolute value of a double-precision floating-point number. Same as Abs(double).
- Abs(float)
Returns the absolute value of a single-precision floating-point number. Same as Abs(float).
- AddChar(string, char)
Adds character to the end of the string.
- AddQuestion(string)
Adds question character to the end of the string.
- CanRead(ImageLockMode)
Checks whether
lockModeis not equal WriteOnly.
- CanWrite(ImageLockMode)
Checks whether
lockModeis not equal ReadOnly.
- Contains(string, string, StringComparison)
Checks whether the source string contains the specified substring using the specified comparison type.
- ContainsChar(string, char)
Reports whether the specified Unicode character is found in the string.
- ContainsComma(string)
Reports whether comma character is found in the string.
- ContainsDot(string)
Reports whether dot character is found in the string.
- ContainsSemicolon(string)
Reports whether semicolon character is found in the string.
- ContainsSpace(string)
Reports whether space character is found in the string.
- CopyToSpan(string, Span<char>)
Copies the contents of this string into the destination span.
- HasPrefix(string, string)
Checks whether string has the specified prefix (position of the
prefixoccurrence is at the beginning of the string).
- HasPropertyName(PropertyChangedEventArgs)
Gets whether property name is specified in the PropertyChangedEventArgs.
- HasSuffix(string, string)
Checks whether string has the specified suffix (position of the
suffixoccurrence is at the end of the string).
- NextFloat(Random)
Returns a random single-precision float in the range [0.0f, 1.0f).
- NextFloat(Random, float, float)
Returns a random float in the range [min, max).
- PixelFromDip(float, float?)
Converts value in device-independent units to pixels using the specified scale factor.
- PixelFromDipD(PointD[], float?)
Converts array of PointD to array of SKPoint using the specified
scaleFactor.
- PixelFromDipI(PointD[], float?)
Converts array of PointD to array of SKPointI using the specified
scaleFactor.
- PushRange<T>(Stack<T>, IEnumerable<T>)
Calls Push(T) for the each item in
items.
- RemoveUnderscore(string)
Removes underscore characters ('_') from string.
- StripSpaces(string)
Removes all space characters from the string.
- ToSkia(LineCap)
Converts LineCap to SKStrokeCap.
- ToSkia(LineJoin)
Converts LineJoin to SKStrokeJoin.
- TrimEndEol(string)
Trims end of line characters from the string.