Table of Contents

Method SetThumbState

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

SetThumbState(bool, VisualControlState)

Sets the visual state of the scrollbar thumb based on the specified orientation.

public void SetThumbState(bool vert, VisualControlState value)

Parameters

vert bool

A boolean value indicating the orientation of the scrollbar. true for vertical orientation; false for horizontal orientation.

value VisualControlState

The VisualControlState to set for the scrollbar thumb.

Remarks

This method updates the thumb state of either the vertical or horizontal scrollbar, depending on the value of the vert parameter. If the specified scrollbar is not initialized, the method performs no action.

SetThumbState(VisualControlState)

Sets the thumb state for both vertical and horizontal scroll bars.

public bool SetThumbState(VisualControlState value)

Parameters

value VisualControlState

The state to set for the thumb of the scroll bars.

Returns

bool

Remarks

This method updates the thumb state of both the vertical and horizontal scroll bars, if they are present.