Class Dimensions

Class Dimensions

Namn på plats: Aspose.Imaging.Xmp.Types.Complex.Dimensions Församling: Aspose.Imaging.dll (25.4.0)

Innehåller dimensioner för ett dragt objekt.

[JsonObject(MemberSerialization.OptIn)]
public sealed class Dimensions : ComplexTypeBase, IXmpType, ICloneable

Inheritance

object XmpTypeBase ComplexTypeBase Dimensions

Implements

IXmpType , ICloneable

Arvsmedlemmar

ComplexTypeBase.GetXmpRepresentation() , ComplexTypeBase.Prefix , ComplexTypeBase.NamespaceUri , XmpTypeBase.GetXmpRepresentation() , XmpTypeBase.ToString() , XmpTypeBase.Clone() , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

Dimensions()

Initialiserar en ny instans av Aspose.Imaging.Xmp.Types.Complex.Dimensions.Dimensions klass.

[JsonConstructor]
public Dimensions()

Dimensions(Flotta och flotta)

Initialiserar en ny instans av Aspose.Imaging.Xmp.Types.Complex.Dimensions.Dimensions klass.

public Dimensions(float width, float height)

Parameters

width float

och bredden.

height float

och höjden.

Properties

Height

Få eller sätta höjden.

public float Height { get; set; }

Fastighetsvärde

float

Exceptions

ArgumentOutOfRangeException

värde;Höghet kan inte vara mindre än noll

Units

Får eller sätter enheter.

[JsonProperty]
public string Units { get; set; }

Fastighetsvärde

string

Examples

Till exempel: tum, mm, pixel, pica, punkt etc.

Width

Får eller sätter bredden.

public float Width { get; set; }

Fastighetsvärde

float

Exceptions

ArgumentOutOfRangeException

värde;Vidhet kan inte vara mindre än noll

Methods

GetXmpRepresentation()

Få värdet i raden i XMP-format.

public override string GetXmpRepresentation()

Returns

string

Returnerar strängen innehållande värde i XMP-format.

 Svenska