HypernovaDesktop Components · docs
Binarymission
WinFormsScrollable Picture › ScrollablePicture

ScrollablePicture

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.Containers

A custom picture box control acts like a stock .NET PictureBox control, and additionally provides many features including being able to customize various user-interface aspects of the scrollbars in the control.

public class ScrollablePicture : Control, IScrollersDockHost

Inherits from / implements: Control, IScrollersDockHost

Members at a glance

ScrollablePictureInitializes a new instance of the ScrollablePicture class.
DefaultSizeGets the size this control starts out at before anything sets it.
DockHostGets the dock host.
HorizontalScrollBarGets the horizontal scroll bar.
ImageGets or sets the image to draw inside the control.
ScrollSizeGets or sets the size of the scroll.
ShouldNotPerformDockHostHorizontalSizePaintingGets a value indicating whether the control should not perform dock host horizontal size painting.
ShouldNotPerformDockHostVerticalSizePaintingGets a value indicating whether the control should not perform dock host vertical size painting.
VerticalScrollBarGets the vertical scroll bar.
IsInputKeyReports whether this control wants a key that the framework would otherwise treat as navigation.
OnHandleCreatedRaises the HandleCreated event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior.
OnKeyDownRaises the KeyDown event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior.
OnKeyUpRaises the KeyUp event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior.
OnMouseClickRaises the MouseClick event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior.
OnMouseWheelRaises the MouseWheel event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior.
OnPaintRaises the Paint event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior.
OnSizeChangedRaises the SizeChanged event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior.
OnTabStopChangedRaises the TabStopChanged event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior.
OnVisibleChangedRaises the VisibleChanged event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior.

Constructors

ScrollablePicture

public ScrollablePicture()

Initializes a new instance of the ScrollablePicture class.

Properties

DefaultSize

protected override Size DefaultSize

Gets the size this control starts out at before anything sets it.

DockHost

public Control DockHost

Gets the dock host.

HorizontalScrollBar

public HorizontalScrollBar HorizontalScrollBar

Gets the horizontal scroll bar.

Image

public Bitmap Image

Gets or sets the image to draw inside the control.

ScrollSize

public Size ScrollSize

Gets or sets the size of the scroll.

ShouldNotPerformDockHostHorizontalSizePainting

public bool ShouldNotPerformDockHostHorizontalSizePainting

Gets a value indicating whether the control should not perform dock host horizontal size painting.

ShouldNotPerformDockHostVerticalSizePainting

public bool ShouldNotPerformDockHostVerticalSizePainting

Gets a value indicating whether the control should not perform dock host vertical size painting.

VerticalScrollBar

public VerticalScrollBar VerticalScrollBar

Gets the vertical scroll bar.

Methods

IsInputKey

protected override bool IsInputKey(Keys keyData)

Reports whether this control wants a key that the framework would otherwise treat as navigation.

OnHandleCreated

protected override void OnHandleCreated(EventArgs e)

Raises the HandleCreated event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnKeyDown

protected override void OnKeyDown(KeyEventArgs e)

Raises the KeyDown event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnKeyUp

protected override void OnKeyUp(KeyEventArgs e)

Raises the KeyUp event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnMouseClick

protected override void OnMouseClick(MouseEventArgs e)

Raises the MouseClick event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnMouseWheel

protected override void OnMouseWheel(MouseEventArgs e)

Raises the MouseWheel event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnPaint

protected override void OnPaint(PaintEventArgs pe)

Raises the Paint event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior.

pe
The data for the event.

OnSizeChanged

protected override void OnSizeChanged(EventArgs e)

Raises the SizeChanged event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnTabStopChanged

protected override void OnTabStopChanged(EventArgs e)

Raises the TabStopChanged event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnVisibleChanged

protected override void OnVisibleChanged(EventArgs e)

Raises the VisibleChanged event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.