Skip to main content

Class TwoPaneSplitViewExtensions

Namespace: Aspid.FastTools.UIElements
Assembly: Aspid.FastTools.dll

Provides extension methods for TwoPaneSplitView.

public static class TwoPaneSplitViewExtensions

Inheritance​

object ← TwoPaneSplitViewExtensions

Methods​

SetFixedPaneIndex<T>(T, int)​

Sets fixedPaneIndex.

public static T SetFixedPaneIndex<T>(this T element, int value) where T : TwoPaneSplitView

Parameters​

element T

The element to modify.

value int

The index of the fixed pane: 0 or 1.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetFixedPaneInitialDimension<T>(T, float)​

Sets fixedPaneInitialDimension.

public static T SetFixedPaneInitialDimension<T>(this T element, float value) where T : TwoPaneSplitView

Parameters​

element T

The element to modify.

value float

The initial width or height of the fixed pane in pixels.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

Remarks​

Unity uses the value only when it has no saved view data for the split view.

SetOrientation<T>(T, TwoPaneSplitViewOrientation)​

Sets orientation.

public static T SetOrientation<T>(this T element, TwoPaneSplitViewOrientation value) where T : TwoPaneSplitView

Parameters​

element T

The element to modify.

value TwoPaneSplitViewOrientation

The orientation of the split to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.