Class Unit
ชื่อพื้นที่: Aspose.Html.Drawing การประกอบ: Aspose.HTML.dll (25.4.0)
ให้คลาสพื้นฐานสําหรับหน่วยวัด
[ComVisible(true)]
public abstract class Unit : IEquatable<unit>
Inheritance
Derived
Implements
อนุญาโตตุลาการ
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
Unit(UnitType)
เริ่มต้นตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Unit
protected Unit(UnitType type)
Parameters
type
UnitType
ประเภทหน่วย
Properties
UnitType
รับประเภทหน่วยของ Aspose.Html.Drawing.Unit
public UnitType UnitType { get; }
คุณสมบัติมูลค่า
Methods
Equals(Unit)
กําหนดว่า Aspose.Html.Drawing.Unit ที่ระบุเท่ากับตัวอย่างนี้หรือไม่
public virtual bool Equals(Unit other)
Parameters
other
Unit
The Aspose.Html.Drawing.Unit เพื่อเปรียบเทียบกับตัวอย่างนี้
Returns
‘จริง’ ถ้าที่ระบุ Aspose.Html.Drawing.Unit เป็นเท่ากับตัวอย่างนี้; ในทางอื่น ๆ, ‘ผิดพลาด’.
Equals(วัตถุ)
กําหนดว่า System.Object ที่ระบุเท่ากับตัวอย่างนี้หรือไม่
public override bool Equals(object obj)
Parameters
obj
object
ระบบ.วัตถุในการเปรียบเทียบกับตัวอย่างนี้
Returns
‘จริง’ ถ้า System.Object ที่ระบุเท่ากับตัวอย่างนี้; ในทางอื่น ๆ, ‘ผิดพลาด’.
FromCentimeters(คู่)
Returns a Aspose.Html.Drawing.Longth object which is represented in centimeters
public static Length FromCentimeters(double value)
Parameters
value
double
ค่าใช้จ่าย
Returns
กลับวัตถุ Aspose.Html.Drawing.Long
FromDegrees(คู่)
Returns a Aspose.Html.Drawing.Angle object which is represented in degrees
public static Angle FromDegrees(double value)
Parameters
value
double
ค่าใช้จ่าย
Returns
กลับวัตถุ Aspose.Html.Drawing.Angle
FromDotsPerCentimeters(คู่)
Returns a Aspose.Html.Drawing.Resolution object which is represented in points per centimeters
public static Resolution FromDotsPerCentimeters(double value)
Parameters
value
double
ค่าใช้จ่าย
Returns
กลับวัตถุ Aspose.Html.Drawing.Resolution
FromDotsPerInch(คู่)
Returns a Aspose.Html.Drawing.Resolution object which is represented in points per inch
public static Resolution FromDotsPerInch(double value)
Parameters
value
double
ค่าใช้จ่าย
Returns
กลับวัตถุ Aspose.Html.Drawing.Resolution
FromDotsPerPixel(คู่)
Returns a Aspose.Html.Drawing.Resolution object which is represented in points per pixels (วัตถุที่แสดงในจุดต่อพิกเซล)
public static Resolution FromDotsPerPixel(double value)
Parameters
value
double
ค่าใช้จ่าย
Returns
กลับวัตถุ Aspose.Html.Drawing.Resolution
FromGradians(คู่)
Returns a Aspose.Html.Drawing.Angle object which is represented in gradians (วัตถุมุมที่ปรากฏใน gradians)
public static Angle FromGradians(double value)
Parameters
value
double
ค่าใช้จ่าย
Returns
กลับวัตถุ Aspose.Html.Drawing.Angle
FromHertz(คู่)
Returns a Aspose.Html.Drawing.Frequency object which is represented in hertz
public static Frequency FromHertz(double value)
Parameters
value
double
ค่าใช้จ่าย
Returns
กลับ Aspose.Html.Drawing.Frequency วัตถุ
FromInches(คู่)
Returns a Aspose.Html.Drawing.Longth object which is represented in นิ้ว
public static Length FromInches(double value)
Parameters
value
double
ค่าใช้จ่าย
Returns
กลับวัตถุ Aspose.Html.Drawing.Long
FromKiloHertz(คู่)
Returns a Aspose.Html.Drawing.Frequency object which is represented in กิโลกรัมHertz.
public static Frequency FromKiloHertz(double value)
Parameters
value
double
ค่าใช้จ่าย
Returns
กลับ Aspose.Html.Drawing.Frequency วัตถุ
FromMillimeters(คู่)
Returns a Aspose.Html.Drawing.Longth object which is represented in millimeters
public static Length FromMillimeters(double value)
Parameters
value
double
ค่าใช้จ่าย
Returns
กลับวัตถุ Aspose.Html.Drawing.Long
FromMilliseconds(คู่)
Returns a Aspose.Html.Drawing.Time object which is represented in milliseconds
public static Time FromMilliseconds(double value)
Parameters
value
double
ค่าใช้จ่าย
Returns
กลับวัตถุ Aspose.Html.Drawing.Time
FromPicas(คู่)
Returns a Aspose.Html.Drawing.Longth object which is represented in picas
public static Length FromPicas(double value)
Parameters
value
double
ค่าใช้จ่าย
Returns
กลับวัตถุ Aspose.Html.Drawing.Long
FromPixels(คู่)
Returns a Aspose.Html.Drawing.Longth object which is represented in pixels. กลับคืนวัตถุ Aspose.Html.Drawing.Longth ที่แสดงในพิกเซล
public static Length FromPixels(double value)
Parameters
value
double
ค่าใช้จ่าย
Returns
กลับวัตถุ Aspose.Html.Drawing.Long
FromPoints(คู่)
Returns a Aspose.Html.Drawing.Longth วัตถุที่แสดงในจุด
public static Length FromPoints(double value)
Parameters
value
double
ค่าใช้จ่าย
Returns
กลับวัตถุ Aspose.Html.Drawing.Long
FromQuarterMillimeters(คู่)
Returns a Aspose.Html.Drawing.Longth object which is represented in quarter-millimeters
public static Length FromQuarterMillimeters(double value)
Parameters
value
double
ค่าใช้จ่าย
Returns
กลับวัตถุ Aspose.Html.Drawing.Long
FromRadians(คู่)
Returns a Aspose.Html.Drawing.Angle object which is represented in radians. วัตถุที่ถูกนําเสนอในรังสี
public static Angle FromRadians(double value)
Parameters
value
double
ค่าใช้จ่าย
Returns
กลับวัตถุ Aspose.Html.Drawing.Angle
FromSeconds(คู่)
Returns a Aspose.Html.Drawing.Time object which is represented in seconds
public static Time FromSeconds(double value)
Parameters
value
double
ค่าใช้จ่าย
Returns
กลับวัตถุ Aspose.Html.Drawing.Time
FromTurns(คู่)
Returns a Aspose.Html.Drawing.Angle object which is represented in turns
public static Angle FromTurns(double value)
Parameters
value
double
ค่าใช้จ่าย
Returns
กลับวัตถุ Aspose.Html.Drawing.Angle
GetHashCode()
กลับรหัส hash สําหรับตัวอย่างนี้
public override int GetHashCode()
Returns
รหัส hash สําหรับตัวอย่างนี้เหมาะสําหรับการใช้งานในอัลกอริทึม hashing และโครงสร้างข้อมูลเช่นตาราง hash
ToString()
กลับ System.String ที่แสดงตัวอย่างนี้
public override string ToString()
Returns
ระบบ String ซึ่งเป็นตัวแทนของ instance นี้