Class LengthOrAuto

Class LengthOrAuto

名称: Aspose.Html.Drawing 编辑: Aspose.HTML.dll (25.4.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.Html.Drawing.LengthOrAuto 类的新例子,并将状态设置为“auto”。

public LengthOrAuto()

LengthOrAuto(Length)

启动了 Aspose.Html.Drawing.LengthOrAuto 类的新例子,并将状态设置为“长”。

public LengthOrAuto(Length length)

Parameters

length Length

长度。

Properties

IsAuto

收到一个值,表明这个例子是否在“汽车”中。

public bool IsAuto { get; }

财产价值

bool

Length

接收或设置长度。

public Length Length { get; set; }

财产价值

Length

UnitType

收到 Aspose.Html.Drawing.Unit 的单位类型。

public UnitType UnitType { get; }

财产价值

UnitType

Methods

Equals(Unit)

确定所指定的 Aspose.Html.Drawing.Unit 是否等于此例子。

public override bool Equals(Unit other)

Parameters

other Unit

Aspose.Html.Drawing.Unit 与此例子进行比较。

Returns

bool

“真实”如果指定的 Aspose.Html.Drawing.Unit 等于此例;否则,“虚假”。

SetAuto()

将容器重定向为“汽车”。

public void SetAuto()

ToString()

返回一个 System.String 代表此例子。

public override string ToString()

Returns

string

一个系统.String 代表这个实例。

Operators

随机运营商 LongthOrAuto(Length)

从 Aspose.Html.Drawing.LengthOrAuto.Length转换为 Aspose.Html.Drawing.LengthOrAuto。

public static implicit operator LengthOrAuto(Length length)

Parameters

length Length

它的价值。

Returns

LengthOrAuto

转换的结果。

看也

Unit

 中文