Class LengthOrAuto
ชื่อพื้นที่: Aspose.Html.Drawing การประกอบ: Aspose.HTML.dll (25.4.0)
เป็นภาชนะบรรจุสําหรับระยะเวลาการจัดเก็บหรือหน่วย “อัตโนมัติ”
[ComVisible(true)]
public class LengthOrAuto : Unit, IEquatable<unit>
Inheritance
object ← Unit ← LengthOrAuto
Implements
อนุญาโตตุลาการ
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()
เริ่มต้นตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.LengthOrAuto และตั้งสถานะเพื่อ ‘auto’.
public LengthOrAuto()
LengthOrAuto(Length)
เริ่มต้นตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.LengthOrAuto และตั้งสถานะเพื่อ ‘ยาว’.
public LengthOrAuto(Length length)
Parameters
length
Length
ความยาว
Properties
IsAuto
ได้รับค่าแสดงให้เห็นว่ากรณีนี้อยู่ใน ‘auto’ หรือไม่
public bool IsAuto { get; }
คุณสมบัติมูลค่า
Length
รับหรือตั้งค่าความยาว
public Length Length { get; set; }
คุณสมบัติมูลค่า
UnitType
รับประเภทหน่วยของ Aspose.Html.Drawing.Unit
public UnitType UnitType { get; }
คุณสมบัติมูลค่า
Methods
Equals(Unit)
กําหนดว่า Aspose.Html.Drawing.Unit ที่ระบุเท่ากับตัวอย่างนี้หรือไม่
public override bool Equals(Unit other)
Parameters
other
Unit
The Aspose.Html.Drawing.Unit เพื่อเปรียบเทียบกับตัวอย่างนี้
Returns
‘จริง’ ถ้าที่ระบุ Aspose.Html.Drawing.Unit เป็นเท่ากับตัวอย่างนี้; ในทางอื่น ๆ, ‘ผิดพลาด’.
SetAuto()
รีเซ็ตคอนเทนเนอร์เพื่อแสดงให้เห็นว่า “รถยนต์”
public void SetAuto()
ToString()
กลับ System.String ที่แสดงตัวอย่างนี้
public override string ToString()
Returns
ระบบ String ซึ่งเป็นตัวแทนของ instance นี้
Operators
ผู้ประกอบการ implicit LengthOrAuto(Length)
ทําการแปลงจาก Aspose.Html.Drawing.LengthOrAuto.Length ไปยัง Aspose.Html.Drawing.LengthOrAuto
public static implicit operator LengthOrAuto(Length length)
Parameters
length
Length
ค่าใช้จ่าย
Returns
ผลของการแปลง