ScrollablePicture
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
ScrollablePicture | Initializes a new instance of the ScrollablePicture class. |
DefaultSize | Gets the size this control starts out at before anything sets it. |
DockHost | Gets the dock host. |
HorizontalScrollBar | Gets the horizontal scroll bar. |
Image | Gets or sets the image to draw inside the control. |
ScrollSize | Gets or sets the size of the scroll. |
ShouldNotPerformDockHostHorizontalSizePainting | Gets a value indicating whether the control should not perform dock host horizontal size painting. |
ShouldNotPerformDockHostVerticalSizePainting | Gets a value indicating whether the control should not perform dock host vertical size painting. |
VerticalScrollBar | Gets the vertical scroll bar. |
IsInputKey | Reports whether this control wants a key that the framework would otherwise treat as navigation. |
OnHandleCreated | Raises the HandleCreated event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior. |
OnKeyDown | Raises the KeyDown event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior. |
OnKeyUp | Raises the KeyUp event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior. |
OnMouseClick | Raises the MouseClick event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior. |
OnMouseWheel | Raises the MouseWheel event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior. |
OnPaint | Raises the Paint event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior. |
OnSizeChanged | Raises the SizeChanged event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior. |
OnTabStopChanged | Raises the TabStopChanged event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior. |
OnVisibleChanged | Raises the VisibleChanged event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior. |
Constructors
ScrollablePicture
Initializes a new instance of the ScrollablePicture class.
Properties
DefaultSize
Gets the size this control starts out at before anything sets it.
DockHost
Gets the dock host.
HorizontalScrollBar
Gets the horizontal scroll bar.
Image
Gets or sets the image to draw inside the control.
ScrollSize
Gets or sets the size of the scroll.
ShouldNotPerformDockHostHorizontalSizePainting
Gets a value indicating whether the control should not perform dock host horizontal size painting.
ShouldNotPerformDockHostVerticalSizePainting
Gets a value indicating whether the control should not perform dock host vertical size painting.
VerticalScrollBar
Gets the vertical scroll bar.
Methods
IsInputKey
Reports whether this control wants a key that the framework would otherwise treat as navigation.
OnHandleCreated
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
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
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
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
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
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
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
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
Raises the VisibleChanged event. ScrollablePicture overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.