Class Resolution
Tên không gian: Aspose.Html.Drawing Tổng hợp: Aspose.HTML.dll (25.4.0)
đại diện cho một đơn vị giải quyết.
[ComVisible(true)]
public sealed class Resolution : Dimension, IEquatable<unit>
Inheritance
object ← Unit ← Numeric ← Dimension ← Resolution
Implements
Thành viên thừa kế
Dimension.ToString() , Numeric.GetValue() , Numeric.CompareTo(Numeric) , Numeric.Equals(Unit) , Numeric.GetHashCode() , Numeric.ToString() , Numeric.GetValue(UnitType) , 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.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Methods
OnConvert(2 đơn vị, UnitType, UnitType)
Được gọi khi đơn vị được chuyển đổi sang loại đơn vị cụ thể.
protected override double OnConvert(double value, UnitType fromType, UnitType toType)
Parameters
value
double
Giá trị .
fromType
UnitType
từ loại đơn vị.
toType
UnitType
Một loại đơn vị.
Returns
Trả lại giá trị được chuyển đổi sang loại cụ thể.
Operators
Nhà điều hành +(Quyết định, Quyết định)
Thực hiện Operator +.
public static Resolution operator +(Resolution a, Resolution b)
Parameters
Các thông số A.
Các thông số b.
Returns
Kết quả của nhà khai thác.
Exceptions
Arguments là null
Arguments có các loại khác nhauhoặcCác câu trả lời có giải pháp khác nhauhoặc
Nhà điều hành =(Quyết định, Quyết định)
Cung cấp cho nhà điều hành =.
public static bool operator ==(Resolution a, Resolution b)
Parameters
Các thông số A.
Các thông số b.
Returns
Kết quả của nhà khai thác.
Nhà điều hành >(Quyết định, Quyết định)
Thực hiện các nhà điều hành >.
public static bool operator >(Resolution a, Resolution b)
Parameters
Các thông số A.
Các thông số b.
Returns
Kết quả của nhà khai thác.
Exceptions
Arguments có các loại khác nhau
Một lý do là null
Nhà điều hành > =(Quyết định, Quyết định)
Thực hiện các nhà điều hành >=.
public static bool operator >=(Resolution a, Resolution b)
Parameters
Các thông số A.
Các thông số b.
Returns
Kết quả của nhà khai thác.
Exceptions
Arguments có các loại khác nhau
Một lý do là null
Giải pháp Operator Implicit(đôi)
Thực hiện chuyển đổi giả định từ System.Double sang Aspose.Html.Drawing.Resolution.
public static implicit operator Resolution(double value)
Parameters
value
double
Giá trị được xử lý như dpi.
Returns
Kết quả của sự chuyển đổi.
Giải pháp Operator Implicit(Sông)
Thực hiện chuyển đổi giả định từ System.Single sang Aspose.Html.Drawing.Resolution.
public static implicit operator Resolution(float value)
Parameters
value
float
Giá trị được xử lý như dpi.
Returns
Kết quả của sự chuyển đổi.
Nhà điều hành !=(Quyết định, Quyết định)
Thực hiện các nhà điều hành !=.
public static bool operator !=(Resolution a, Resolution b)
Parameters
Các thông số A.
Các thông số b.
Returns
Kết quả của nhà khai thác.
Nhà cung cấp <(Quyết định, Quyết định)
Thực hiện các nhà điều hành <.
public static bool operator <(Resolution a, Resolution b)
Parameters
Các thông số A.
Các thông số b.
Returns
Kết quả của nhà khai thác.
Exceptions
Arguments có các loại khác nhau
Một lý do là null
Nhà sản xuất <=(Quyết định, Quyết định)
Thực hiện các nhà điều hành <=.
public static bool operator <=(Resolution a, Resolution b)
Parameters
Các thông số A.
Các thông số b.
Returns
Kết quả của nhà khai thác.
Exceptions
Arguments có các loại khác nhau
Một lý do là null
Nhà điều hành -(Quyết định, Quyết định)
Cung cấp cho nhà điều hành - -
public static Resolution operator -(Resolution a, Resolution b)
Parameters
Các thông số A.
Các thông số b.
Returns
Kết quả của nhà khai thác.
Exceptions
Arguments là null
Arguments có các loại khác nhauhoặcArguments có các giải pháp khác nhauhoặc