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