Click or drag to resize

Rubberband Methods

The Rubberband type exposes the following members.

Methods
  NameDescription
Public methodCancel
Cancels dragging a new rubberband.
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDispose
Releases all resources used by the Component.
(Inherited from Component.)
Protected methodDispose(Boolean)
Releases resources held by the object back to the system.
(Overrides ComponentDispose(Boolean).)
Protected methodDrawRegion
Called when a region needs to be drawn.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodEraseRegion
Call this method to erase the current region.
Protected methodFinalize (Overrides ComponentFinalize.)
Protected methodGetConstrainedPoint
Returns a point that is within the image bounds and snap to the pixel grid.
Public methodGetDisplayBounds
Returns a Rectangle representing the rectangular rubberband boundary in Viewport display coordinates.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetRegion
Inheriting classes must implement this method and return the region occupied by the rubber band.
Protected methodGetService
Returns an object that represents a service provided by the Component or by its Container.
(Inherited from Component.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHitTest
Returns a value indicating if the position is within the RubberBand boundary.
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Protected methodOnActiveButtonsChanged
Called when the ActiveButtons property changes and raises the ActiveButtonsChanged event.
Protected methodOnActiveChanged
Called when the Active property has changed and raises the ActiveChanged event.
Protected methodOnAspectRatioChanged
Called when the AspectRatio property has changed and raises the AspectRatioChanged event.
Protected methodOnBackgroundColorChanged
Called when the BackgroundColor property has changed and raises the BackgroundColorChanged event.
Protected methodOnChanged
Called when the Rubberband has changed.
Protected methodOnChanging
Called when the Rubberband is in the process of changing.
Protected methodOnClickLockChanged
Called when the ClickLock property has changed and raises the ClickLockChanged event.
Protected methodOnConstrainPositionChanged
Called when the ConstrainPosition property has changed and raises the ConstrainPositionChanged event.
Protected methodOnCursorChanged
Called when the Cursor property has changed and raises the CursorChanged event.
Protected methodOnDrawRubberband
Draws the Rubberband using the provided Canvas and pen.
Protected methodOnInvertedChanged
Called when the Inverted property has changed and raises the InvertedChanged event.
Protected methodOnMouseDown
Called when a mouse button is pressed over the Rubberband.
Protected methodOnMouseMove
Called when the mouse is moved over the Rubberband.
Protected methodOnMouseUp
Called when a mouse button is released over the Rubberband.
Protected methodOnMoveCursorChanged
Called when the MoveCursor property has changed and raises the MoveCursorChanged event.
Protected methodOnMoveWhenInsideChanged
Called when the MoveWhenInside property has changed and raises the MoveWhenInsideChanged event.
Protected methodOnPaint
Called when the Rubberband needs to be painted.
Protected methodOnParentChanged
Called when the Parent property has changed and raises the ParentChanged event.
Protected methodOnPenChanged
Called when the Pen property has changed and raises the PenChanged event.
Protected methodOnPersistChanged
Called when the Persist property has changed and raises the PersistChanged event.
Protected methodOnSnapToPixelGridChanged
Called when the SnapToPixelGrid property has changed and raises the SnapToPixelGridChanged event.
Protected methodOnVisibleChanged
Called when the Visible property has changed and raises the VisibleChanged event.
Protected methodPixelPointFromDisplayPoint
Returns the pixel position from the specified display position.
Protected methodPixelPointToDisplayPoint
Returns the display position from a pixel position.
Public methodSetDisplayBounds
Sets the rectangular boundary of the rubberband by using Viewport coordinates.
Public methodStart
Programmatically starts a new rubberband without user interaction.
Public methodToString
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.)
Top
See Also