Class vdScrollableControl
- Namespace
- vdScrollableControl
- Assembly
- vdScrollableControl.dll
Represents a composite control that integrates VectorDrawBaseControl with supporting UI components.
public class vdScrollableControl : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
- Inheritance
-
vdScrollableControl
- Implements
- Inherited Members
Examples
var scrollableControl = new vdScrollableControl();
// Access the underlying base control
var baseControl = scrollableControl.BaseControl;
// Access the layout tab
var layoutTab = scrollableControl.LayoutTab;
// Configure ruler visibility
scrollableControl.RulerObject.Visible = true;
scrollableControl.RulerObject.IsMillimeters = true;
Remarks
The vdScrollableControl is a specialized UserControl that provides a complete drawing interface by combining the following components:
- VectorDrawBaseControl - The main drawing surface
- Horizontal and vertical scroll bars for navigating the drawing area
- Ruler objects for displaying coordinate measurements
- Layout tab control for managing multiple drawing layouts
This control automatically manages scroll bar visibility and positioning based on the current zoom level and document state. It also handles layout switching through the integrated tab interface.
The ruler component displays coordinate information relative to the active rendering surface and can be configured to show measurements in either millimeters or inches with customizable display options.
Constructors
- vdScrollableControl()
Main constructor of the vdScrollableControl.
Properties
- BaseControl
Returns the VectorDrawBaseControl children control.
- LayoutTab
Returns the TabControl of the layout tab.
- RulerObject
Gets the object used to display Vertical and horizontal ruler on the control.
- ShowLayoutPopupMenu
Get/Set a value representing if the popup menu will be displayed when right click the Layout tab.
Methods
- Dispose(bool)
Clean up any resources being used.
- GetShowHscroll()
Returns true if Horizontal scroll bar is visible.
- GetShowLayoutTab()
Returns true if Layout tab is visible.
- GetShowVscroll()
Returns true if Vertical scroll bar is visible.
- OnGotFocus(EventArgs)
Raises the System.Windows.Forms.Control.GotFocus event.
- OnLoad(EventArgs)
Fires when the control is loaded.
- OnPaint(PaintEventArgs)
Raises the System.Windows.Forms.Control.Paint event.
- OnResize(EventArgs)
Raises the System.Windows.Forms.Control.Resize event.
- ProcessCmdKey(ref Message, Keys)
Processes a command key.
- ReFillTabs()
Update the Layout tabs with all Layouts of ActiveDocument.
- SetShowHscroll(bool)
Change the visibility of Horizontal scroll bar.
- SetShowLayoutTab(bool)
Change the vilibility of the Layout Tab.
- SetShowVscroll(bool)
Change the visibility of Vertical scroll bar.
- UpdateScrollExtends()
Change the Horizontal and Vertical scroll bars properties depend on the current zoom.