Class LengthOrAuto
Tên không gian: Aspose.Html.Drawing Tổng hợp: Aspose.HTML.dll (25.4.0)
Nó đại diện cho một container cho chiều dài lưu trữ hoặc đơn vị ’tự động'.
[ComVisible(true)]
public class LengthOrAuto : Unit, IEquatable<unit>
Inheritance
object ← Unit ← LengthOrAuto
Implements
Thành viên thừa kế
Unit.Equals(Unit) , Unit.Equals(object) , Unit.GetHashCode() , Unit.ToString() , Unit.FromCentimeters(double) , Unit.FromMillimeters(double) , Unit.FromQuarterMillimeters(double) , Unit.FromInches(double) , Unit.FromPicas(double) , Unit.FromPoints(double) , Unit.FromPixels(double) , Unit.FromDegrees(double) , Unit.FromGradians(double) , Unit.FromRadians(double) , Unit.FromTurns(double) , Unit.FromSeconds(double) , Unit.FromMilliseconds(double) , Unit.FromHertz(double) , Unit.FromKiloHertz(double) , Unit.FromDotsPerInch(double) , Unit.FromDotsPerCentimeters(double) , Unit.FromDotsPerPixel(double) , Unit.UnitType , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
LengthOrAuto()
Bắt đầu một trường hợp mới của lớp Aspose.Html.Drawing.LengthOrAuto và đặt trạng thái vào ‘auto’.
public LengthOrAuto()
LengthOrAuto(Length)
Bắt đầu một trường hợp mới của lớp Aspose.Html.Drawing.LongthOrAuto và đặt trạng thái để ’long'.
public LengthOrAuto(Length length)
Parameters
length
Length
chiều dài .
Properties
IsAuto
Nó nhận được một giá trị cho thấy liệu trường hợp này có trong ‘auto’ hay không.
public bool IsAuto { get; }
Giá trị bất động sản
Length
Nhận hoặc đặt chiều dài.
public Length Length { get; set; }
Giá trị bất động sản
UnitType
Nhận loại đơn vị của Aspose.Html.Drawing.Unit.
public UnitType UnitType { get; }
Giá trị bất động sản
Methods
Equals(Unit)
Nó xác định xem Aspose.Html.Drawing.Unit được chỉ định có tương đương với trường hợp này hay không.
public override bool Equals(Unit other)
Parameters
other
Unit
Các Aspose.Html.Drawing.Unit để so sánh với trường hợp này.
Returns
’truyền’ nếu đơn vị Aspose.Html.Drawing.Unit được chỉ định là tương đương với trường hợp này; nếu không, ’lầm’.
SetAuto()
Cài đặt lại container để gọi là ‘auto’.
public void SetAuto()
ToString()
Trở lại một System.String đại diện cho trường hợp này.
public override string ToString()
Returns
Một hệ thống.String đại diện cho trường hợp này.
Operators
Lợi ích của Operator LengthOrAuto(Length)
Thực hiện chuyển đổi giả định từ Aspose.Html.Drawing.LongthOrAuto.Longth đến Aspose.Html.Drawing.LongthOrAuto.
public static implicit operator LengthOrAuto(Length length)
Parameters
length
Length
Giá trị .
Returns
Kết quả của sự chuyển đổi.