API Documentation > CorelDRAW > 2025-v26
IVGToolStateAttributes interface
The main interface for ToolStateAttributes class
Syntax:
Interface IVGToolStateAttributes
Properties:
Name Description
AllowAutopan Gets or sets the state's ability to auto-pan
AllowContextMenu Gets or sets the state's ability to show the context menu
AllowTempPickState Gets or sets the state's ability to use the temporary pick state
CanUpdateSelectionOnMouseClick Gets or sets the state's ability to update selection when the mouse is clicked
ContextMenuGuid Gets or sets the state context menu GUID
CurrentPressure Get the current tablet pressure. If UseTabletPressure is false, this returns 1.0
DeselectOnLButtonDown Gets or sets the state's ability to deselect objects when the left mouse button is pressed
Document Returns the current document the state operates on
EnterGraceStateOnLButtonDown Gets or sets the state's ability to use a grace state
PropertyBarGuid Gets or sets the state property bar GUID
StatusInfo Sets the status text
UseTabletPressure Gets or sets the state's ability to use the tablet pressure
Methods:
Name Description
AnchoredSnapMouse Helper function to snap a mouse position using an anchor location
CaptureMouse Captures the mouse input and redirects it to the current state
ConstrainMouse Helper function to constrain a mouse position
ExitTemporaryToolState Exits the temporary state started with Application.StartTemporaryToolState
IsKeyDown Determine if a given key is pressed
ReleaseMouse Releases the mouse input captured by the state earlier
SetCursor Sets the state cursor
SetCursorGuid Sets the cursor GUID
SetFocus Forces mouse and keyboard input to be sent to the current state
SetStateHintsPage Sets the path to the hints page for this state
SnapMouse Helper function to snap a mouse position
StartTimer Start a timer for the state
StopTimer Stop a timer for the state