[]
        
(Showing Draft Content)

GrapeCity.Documents.Svg.SvgLength

Struct SvgLength

Namespace
GrapeCity.Documents.Svg
Assembly
GcDocs.Imaging.dll

Represents the presentation attribute value, such as X-coordinate or height.

public struct SvgLength : IEquatable<SvgLength>
Implements
System.IEquatable<T><SvgLength>
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()

Constructors

SvgLength(float, SvgLengthUnits)

Initializes a new instance of the SvgLength struct.

public SvgLength(float value, SvgLengthUnits units = SvgLengthUnits.Number)

Parameters

value float

The value of a length in specified units.

units SvgLengthUnits

The type of length units.

Fields

Auto

Represents the Auto value.

public static readonly SvgLength Auto

Field Value

SvgLength

Bottom

Represents the Bottom value.

public static readonly SvgLength Bottom

Field Value

SvgLength

Center

Represents the Center value.

public static readonly SvgLength Center

Field Value

SvgLength

Large

Represents the Large value.

public static readonly SvgLength Large

Field Value

SvgLength

Larger

Represents the Larger value.

public static readonly SvgLength Larger

Field Value

SvgLength

Left

Represents the Left value.

public static readonly SvgLength Left

Field Value

SvgLength

Medium

Represents the Medium value.

public static readonly SvgLength Medium

Field Value

SvgLength

OnePixel

Represents a '1px' length.

public static readonly SvgLength OnePixel

Field Value

SvgLength

Percent100

Represents a length corresponding to 100% of the viewport length.

public static readonly SvgLength Percent100

Field Value

SvgLength

Percent50

Represents a length corresponding to 50% of the viewport length.

public static readonly SvgLength Percent50

Field Value

SvgLength

Right

Represents the Right value.

public static readonly SvgLength Right

Field Value

SvgLength

Small

Represents the Small value.

public static readonly SvgLength Small

Field Value

SvgLength

Smaller

Represents the Smaller value.

public static readonly SvgLength Smaller

Field Value

SvgLength

Top

Represents the Top value.

public static readonly SvgLength Top

Field Value

SvgLength

XLarge

Represents the XLarge value.

public static readonly SvgLength XLarge

Field Value

SvgLength

XSmall

Represents the XSmall value.

public static readonly SvgLength XSmall

Field Value

SvgLength

XXLarge

Represents the XXLarge value.

public static readonly SvgLength XXLarge

Field Value

SvgLength

XXSmall

Represents the XXSmall value.

public static readonly SvgLength XXSmall

Field Value

SvgLength

Zero

Represents a zero length.

public static readonly SvgLength Zero

Field Value

SvgLength

Properties

Units

Gets or sets the type of length units.

public SvgLengthUnits Units { get; set; }

Property Value

SvgLengthUnits

Value

Gets or sets the value of a length in specified units.

public float Value { get; set; }

Property Value

float

Methods

Equals(SvgLength)

Determines whether the specified SvgLength is equal to this instance.

public bool Equals(SvgLength other)

Parameters

other SvgLength

Returns

bool

Equals(object)

Determines whether the specified object is equal to this instance.

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

Returns a hash code for this struct.

public override int GetHashCode()

Returns

int

ToString()

Returns a string that represents the current struct.

public override string ToString()

Returns

string