Class Dimensions
Tên không gian: Aspose.Imaging.Xmp.Types.Complex.Dimensions Tổng hợp: Aspose.Imaging.dll (25.4.0)
chứa kích thước cho một đối tượng kéo.
[JsonObject(MemberSerialization.OptIn)]
public sealed class Dimensions : ComplexTypeBase, IXmpType, ICloneable
Inheritance
object ← XmpTypeBase ← ComplexTypeBase ← Dimensions
Implements
Thành viên thừa kế
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()
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.Xmp.Types.Complex.Dimensions.
[JsonConstructor]
public Dimensions()
Dimensions(Float , Float)
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.Xmp.Types.Complex.Dimensions.
public Dimensions(float width, float height)
Parameters
width
float
Chiều rộng .
height
float
Độ cao .
Properties
Height
Nhận hoặc đặt chiều cao.
public float Height { get; set; }
Giá trị bất động sản
Exceptions
giá trị; chiều cao không thể nhỏ hơn 0
Units
Nhận hoặc đặt các đơn vị.
[JsonProperty]
public string Units { get; set; }
Giá trị bất động sản
Examples
Ví dụ: inch, mm, pixel, pica, điểm, vv
Width
Nhận hoặc đặt chiều rộng.
public float Width { get; set; }
Giá trị bất động sản
Exceptions
giá trị; chiều rộng không thể nhỏ hơn 0
Methods
GetXmpRepresentation()
Nhận giá trị dòng chứa trong định dạng XMP.
public override string GetXmpRepresentation()
Returns
Trả lại giá trị của string trong định dạng XMP.