New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public abstract class WidthHeightBase

Inheritance: objectWidthHeightBase

Derived Classes: ColumnWidthRowHeight

Constructors

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

C#
protected WidthHeightBase(double value, bool isCustom)
Parameters:valuedouble

The value.

isCustombool

The is custom.

Methods

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

C#
public override bool Equals(object obj)
Parameters:objobject

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)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()

Returns a string that represents the current object.

C#
public override string ToString()
Returns:

string

A string that represents the current object.

Overrides: object.ToString()

Properties

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

C#
public bool IsCustom { get; }
Property Value:

The value indicating whether the width / height is custom.

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

C#
public double Value { get; }
Property Value:

The value.