Skip to content

ScrollBarPosition (property)

Julius Kirsch edited this page Jan 21, 2023 · 1 revision

ScrollBarPosition

Definition:

public ScrollBarPosition ScrollBarPosition { get; set; }

Return:

A class of type ScrollBarPosition containing the X and Y amount of pixels currently scrolled

Example:

//Scroll to X100 and Y500:
textbox.ScrollBarPosition = new ScrollBarPosition(100, 500);

//Get the amount scrolled horizontal:
double xScrolled = textbox.ScrollBarPosition.XValue;
Clone this wiki locally