Show / Hide Table of Contents

Struct SplitterDistance

Represents the size of SplitContainer resizable areas.

Implements
System.IEquatable<SplitterDistance>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: DevZest.Windows
Assembly: DevZest.WpfDocking.dll
Syntax
[TypeConverter(typeof(SplitterDistanceConverter))]
public struct SplitterDistance : IEquatable<SplitterDistance>
Remarks

When Value property is System.Double.NaN, it represents auto sizing: the actual size will be determined by the content's desired size. When UnitType property is Star, the size will be calculated based on weighted proportion of available space.

The SplitterDistance value can have following values in XAML ("?" represents a double value):

"Auto": Auto size in pixel. The subsequent resizing by mouse drog or arrow key will result in a Pixel type value.
"Auto*": Auto size in weighted proportion. The subsequent resizing by mouse drog or arrow key will result in a Star type value.
"*": Equals "1*".
"?*": Weighted proportion: resultSize = totalAvailableSize * ? / (? + 1).
"?": Equals "?px".
"?px": ? device-independent units (1/96th inch per unit).
"?in": ? inch; 1in==96px.
"?cm": ? centimeters; 1cm==(96/2.54)px.
"?pt": ? points; 1pt==(96/72)px.

Constructors

Name Description
SplitterDistance(Double)

Initializes a new instance of the SplitterDistance class.

SplitterDistance(Double, SplitterUnitType)

Initializes a new instance of the SplitterDistance class.

Properties

Name Description
AutoPixel

Gets an instance of SplitterDistance that holds a value whose size is determined by the size of the content object, and expressed in pixels.

AutoStar

Gets an instance of SplitterDistance that holds a value whose size is determined by the size of the content object, and expressed as a weighted proportion of available space.

IsAbsolute

Gets a value that indicates whether the SplitterDistance holds a value that is expressed in pixels.

IsAuto

Gets a value that indicates whether the SplitterDistance holds a value whose size is determined by the size properties of the content object.

IsAutoPixel

Gets a value that indicates whether the SplitterDistance holds a value whose size is determined by the size properties of the content object, and expressed in pixels.

IsAutoStar

Gets a value that indicates whether the SplitterDistance holds a value whose size is determined by the desired size of the content object, and expressed as a weighted proportion of available space.

IsStar

Gets a value that indicates whether the SplitterDistance holds a value that is expressed as a weighted proportion of available space.

UnitType

Gets the associated SplitterUnitType for the SplitterDistance.

Value

Gets a System.Double that represents the value of the SplitterDistance.

Methods

Name Description
Equals(SplitterDistance)
Equals(Object)
GetHashCode()
ToString()

Operators

Name Description
Equality(SplitterDistance, SplitterDistance)
Inequality(SplitterDistance, SplitterDistance)
  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest