[]
        
(Showing Draft Content)

GrapeCity.Documents.Svg.SvgPreserveAspectRatio

Struct SvgPreserveAspectRatio

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

Indicates whether or not to force uniform scaling

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

Constructors

SvgPreserveAspectRatio(SvgAspectRatioAlign, SvgMeetOrSlice)

Initializes a new instance of the SvgPreserveAspectRatio struct.

public SvgPreserveAspectRatio(SvgAspectRatioAlign align, SvgMeetOrSlice meetOrSlice)

Parameters

align SvgAspectRatioAlign
meetOrSlice SvgMeetOrSlice

Fields

Default

Represents a default value of SvgPreserveAspectRatio.

public static readonly SvgPreserveAspectRatio Default

Field Value

SvgPreserveAspectRatio

None

Represents a SvgPreserveAspectRatio that does not force uniform scaling.

public static readonly SvgPreserveAspectRatio None

Field Value

SvgPreserveAspectRatio

Properties

Align

Gets or sets a value indicating whether to force uniform scaling and, if so, the alignment method to use.

public SvgAspectRatioAlign Align { get; set; }

Property Value

SvgAspectRatioAlign

MeetOrSlice

Gets or sets a value specifying the method of scaling the element's 'viewBox' within the SVG viewport.

public SvgMeetOrSlice MeetOrSlice { get; set; }

Property Value

SvgMeetOrSlice

Methods

Equals(SvgPreserveAspectRatio)

Determines whether the specified SvgPreserveAspectRatio is equal to this instance.

public bool Equals(SvgPreserveAspectRatio other)

Parameters

other SvgPreserveAspectRatio

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