Table of Contents

Class ExtensionsPrivate

Namespace
Alternet.UI.Extensions
Assembly
Alternet.UI.Common.dll

Contains extension methods for the different classes.

public static class ExtensionsPrivate
Inheritance
ExtensionsPrivate

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 lockMode is not equal WriteOnly.

CanWrite(ImageLockMode)

Checks whether lockMode is not equal ReadOnly.

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.

HasPropertyName(PropertyChangedEventArgs)

Gets whether property name is specified in the PropertyChangedEventArgs.

IsLeftOrRight(DockStyle)

Gets whether DockStyle equals Left or Right.

IsTopOrBottom(DockStyle)

Gets whether DockStyle equals Top or Bottom.

PixelFromDip(double, double?)

Converts value in device-independent units to pixels using the specified scale factor.

PixelFromDipD(PointD[], double?)

Converts array of PointD to array of SKPoint using the specified scaleFactor.

PixelFromDipI(PointD[], double?)

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.

ToSKEncodedImageFormat(BitmapType)

Converts BitmapType to SKEncodedImageFormat.

ToSkia(LineCap)

Converts LineCap to SKStrokeCap.

ToSkia(LineJoin)

Converts LineJoin to SKStrokeJoin.

ToSkia(PointD[])

Converts array of PointD to array of SKPoint.

TrimEndEol(string)

Trims end of line characters from the string.