Class LengthOrAuto

Class LengthOrAuto

Nazwa przestrzeń: Aspose.Html.Drawing Zestaw: Aspose.HTML.dll (25.4.0)

Przedstawia pojemnik na długość przechowywania lub jednostki „automatyczne”.

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

Inheritance

object Unit LengthOrAuto

Implements

IEquatable

Dziedziczeni członkowie

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()

Inicjalizuje nową instancję klasy Aspose.Html.Drawing.LengthOrAuto i ustawia stan na “auto”.

public LengthOrAuto()

LengthOrAuto(Length)

Inicjalizuje nową instancję klasy Aspose.Html.Drawing.LengthOrAuto i ustawia stan na “long”.

public LengthOrAuto(Length length)

Parameters

length Length

i długości .

Properties

IsAuto

Otrzymuje wartość wskazującą, czy ta instancja znajduje się w “auto”.

public bool IsAuto { get; }

Wartość nieruchomości

bool

Length

Dostaje lub ustawia długość.

public Length Length { get; set; }

Wartość nieruchomości

Length

UnitType

Otrzymuje typ jednostki Aspose.Html.Drawing.Unit.

public UnitType UnitType { get; }

Wartość nieruchomości

UnitType

Methods

Equals(Unit)

Określa, czy określony Aspose.Html.Drawing.Unit jest równy tej instancji.

public override bool Equals(Unit other)

Parameters

other Unit

Aspose.Html.Drawing.Unit do porównania z tą instancją.

Returns

bool

“prawdziwy” jeśli określony Aspose.Html.Drawing.Unit jest równy tej instancji; w przeciwnym razie, “fałszywy”.

SetAuto()

Odśwież pojemnik do stwierdzenia „auto”.

public void SetAuto()

ToString()

Powraca system.String, który reprezentuje tę instancję.

public override string ToString()

Returns

string

System.String, który reprezentuje tę instancję.

Operators

Operator implikacyjny LengthOrAuto(Length)

Wykonuje implikowaną konwersję z Aspose.Html.Drawing.DługośćOrAuto.Długość do Aspose.Html.Drawing.DługośćOrAuto.

public static implicit operator LengthOrAuto(Length length)

Parameters

length Length

I wartość .

Returns

LengthOrAuto

Wynik konwersji.

Zobacz również

Unit

 Polski