Class LengthOrAuto

Class LengthOrAuto

ชื่อพื้นที่: Aspose.Svg.Drawing การประชุม: Aspose.SVG.dll (25.5.0)

เป็นภาชนะบรรจุสําหรับระยะเวลาการจัดเก็บหรือหน่วย “อัตโนมัติ”

[ComVisible(true)]
public class LengthOrAuto : Unit, IEquatable<unit>

Inheritance

object Unit LengthOrAuto

Implements

IEquatable

อนุญาโตตุลาการ

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.Svg.Drawing.LengthOrAuto และตั้งสถานะเพื่อ ‘auto’.

public LengthOrAuto()

LengthOrAuto(Length)

เริ่มต้นตัวอย่างใหม่ของคลาส Aspose.Svg.Drawing.LengthOrAuto และตั้งสถานะเพื่อ ‘ยาว’.

public LengthOrAuto(Length length)

Parameters

length Length

ความยาว

Properties

IsAuto

ได้รับค่าแสดงให้เห็นว่ากรณีนี้อยู่ใน ‘auto’ หรือไม่

public bool IsAuto { get; }

คุณสมบัติมูลค่า

bool

Length

รับหรือตั้งค่าความยาว

public Length Length { get; set; }

คุณสมบัติมูลค่า

Length

UnitType

รับประเภทหน่วยของ Aspose.Svg.Drawing.Unit

public UnitType UnitType { get; }

คุณสมบัติมูลค่า

UnitType

Methods

Equals(Unit)

กําหนดว่า Aspose.Svg.Drawing.Unit ที่ระบุเท่ากับตัวอย่างนี้หรือไม่

public override bool Equals(Unit other)

Parameters

other Unit

The Aspose.Svg.Drawing.Unit เพื่อเปรียบเทียบกับตัวอย่างนี้

Returns

bool

‘จริง’ ถ้า Aspose.Svg.Drawing.Unit ที่ระบุเท่ากับตัวอย่างนี้ ในทางกลับกัน ‘ผิด’.

SetAuto()

รีเซ็ตคอนเทนเนอร์เพื่อแสดงให้เห็นว่า “รถยนต์”

public void SetAuto()

ToString()

กลับ System.String ที่แสดงตัวอย่างนี้

public override string ToString()

Returns

string

ระบบ String ซึ่งเป็นตัวแทนของ instance นี้

Operators

ผู้ประกอบการ implicit LengthOrAuto(Length)

ทําการแปลงแบบ implicit จาก Aspose.Svg.Drawing.LengthOrAuto. ความยาว ไปยัง Asposa.СvG. Drawings.

public static implicit operator LengthOrAuto(Length length)

Parameters

length Length

ค่าใช้จ่าย

Returns

LengthOrAuto

ผลของการแปลง

ดูเพิ่มเติม

Unit

 แบบไทย