Class
WidthHeightBase

Base class for row height and column width specifications, storing the dimension value and custom-size flag.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public abstract class WidthHeightBase

Inheritance: objectWidthHeightBase

Derived Classes: ColumnWidthRowHeight

Constructors

WidthHeightBase(double, bool)

Initializes a new WidthHeightBase with the specified dimension and custom-size flag.

Declaration

cs-api-definition
protected WidthHeightBase(double value, bool isCustom)

Parameters

value

double

The value.

isCustom

bool

The is custom.

Properties

IsCustom

Gets whether the dimension was explicitly set by the user rather than using the default size.

Declaration

cs-api-definition
public bool IsCustom { get; }

Property Value

bool

The value indicating whether the width / height is custom.

Value

Gets the width or height dimension in device-independent pixels.

Declaration

cs-api-definition
public double Value { get; }

Property Value

double

The value.

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with the current object.

Returns

bool

True if the specified object is equal to the current object; otherwise, false.

Overrides object.Equals(object)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides object.GetHashCode()

ToString()

Returns a string that represents the current object.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents the current object.

Overrides object.ToString()