Click or drag to resize

AnnotationUI Class

This abstract class represents the base annotation object. All annotations must derive from AnnotationUI.
Inheritance Hierarchy
SystemObject
  Atalasoft.Annotate.UIAnnotationUI
    More...

Namespace:  Atalasoft.Annotate.UI
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
[SerializableAttribute]
public abstract class AnnotationUI : ISerializable

The AnnotationUI type exposes the following members.

Constructors
  NameDescription
Protected methodAnnotationUI(AnnotationData)
A constructor for the AnnotationUI object specifying the releated AnnotationData.
Public methodAnnotationUI(SerializationInfo, StreamingContext)
A constructor for AnnotationUI specifying the serialization information for this annotation.
Top
Properties
  NameDescription
Public propertyBounds
Gets the bounding rectangle for the annotation.
Public propertyCanMirror
Gets or sets a value indicating whether can mirror.
Public propertyCanMove
Gets or sets a value indicating whether can move.
Public propertyCanResize
Gets or sets a value indicating whether can resize.
Public propertyCanRotate
Gets or sets a value indicating whether can rotate.
Public propertyCanSelect
Gets or sets a value indicating whether can select.
Public propertyContextMenu
Gets or sets a ContextMenu object that will be displayed when the user right-clicks on the annotation.
Public propertyContextMenuStrip
Gets or sets a ContextMenuStrip object that will be displayed when the user right-clicks on the annotation.
Public propertyController
Gets the AnnotationController for this annotation.
Public propertyCreationTime
Gets or sets the creation time.
Public propertyData
Gets the AnnotationData object associated with this annotation.
Public propertyGrips
Gets the grips used for the annotation.
Public propertyHitTestRectangle
Gets a rectangle used for hit testing or RectangleF.Empty to use the default hit testing method.
Public propertyLocation
Gets or sets the location of the annotation in document space.
Public propertyModifiedTime
Gets or sets the modification time.
Public propertyName
Gets or sets the name.
Public propertyParentLayer
Gets or sets the LayerAnnotation that contains this annotation.
Public propertyRotation
Gets or sets the rotation.
Public propertySecurity
Gets or sets the security.
Public propertySelected
Gets or sets a value indicating whether this annotation the selected.
Public propertySize
Gets or sets the size of the annotation.
Public propertyState
Gets or sets the current state of the annotation.
Public propertyToolTip
Gets or sets the tool tip.
Public propertyTransform
Gets or sets the transform.
Public propertyUserName
Gets or sets the name of the user.
Public propertyVisible
Gets or sets a value indicating whether the annotation is visible.
Top
Methods
  NameDescription
Protected methodCode exampleAddGripsToRegion
Adds the annotation grips to a region. The grips are added in annotation space.
Protected methodCode exampleApplyRegionTransform
Use this method to convert a region from annotation space to document or view space.
Public methodBeginCreate
This method is called by the AnnotationController when the user is beginning to create this annotation using the mouse.
Public methodClone
Creates a copy of this annotation.
Protected methodCreateRenderTransform
Returns the Matrix used by the renderer to transform the annotation.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetConfinedGripPosition
Gets the confined grip position.
Public methodGetConfinedLocation(RectangleF, PointF)
Returns the new confined location of the annotation when a confinement bounds and new location offset are provided.
Protected methodGetConfinedLocation(RectangleF, RectangleF, PointF)

Returns the new confined location of the annotation when the annotation bounds, a confinement bounds and new location offset are provided.

This overload is useful when only a portion of the annotation bounds should be taken into account for this calculation.

Public methodGetConfinedRotation
Gets the confined rotation.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetObjectData
Fills a SerializationInfo object with information about this annotation.
Protected methodGetOnePixel
Returns the equivalent of 1 pixel in resolution units.
Public methodCode exampleGetRegion
Returns a rectangular region for this annotation, including its grips if selected.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodGetViewerParameters
This method is used to get information about the viewer where the annotations are rendered, including resolution, zoom (scale) level and scrollbar position.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMirror
Mirrors (flips) the annotation horizontally or vertically.
Protected methodOnAnnotationControllerNotification
Called after a property of the annotation or related AnnotationData has been modified.
Protected methodOnClick
Called when the user has clicked on the annotation.
Protected methodOnControllerChanged
Called when the Controller property has changed.
Protected methodOnDoubleClick
Called when the annotation is double-clicked.
Protected methodOnGripPositionChanged
Called when a grip of the annotation has been moved by the user using the mouse.
Protected methodOnMirror
Called when the grips of an annotation have been dragged past the opposite grip.
Protected methodOnMouseDown
Called when the user clicks down on the annotation.
Protected methodOnMouseEnter
Called when the mouse is moved into the annotation region.
Protected methodOnMouseExit
Called when the mouse is moved out of the annotation region.
Protected methodOnMouseMove
Called when the user has moved the mouse over the annotation.
Protected methodOnMouseUp
Called when the user has released the mouse over the annotation.
Protected methodOnMoved
Called when a move to a new location has completed.
Protected methodOnMoving
Called while an annotation is being moved by the user.
Protected methodOnPropertyChanged
Called when a property value has changed and raises the PropertyChanged event.
Protected methodOnPropertyChanging
Called when a property of the annotation or AnnotationData is about to be changed.
Protected methodOnResized
Called when a resize on the annotation has completed.
Protected methodOnResizing
Called while the annotation is being resized by the user.
Protected methodOnRotate
Called when the Rotate(Single) method is called on the annotation.
Protected methodOnRotated
Called when the annotation has been rotated by the user.
Protected methodOnRotateDocument
Called when the RotateDocument(DocumentRotation, Int32) method is used.
Protected methodOnRotating
Called while an annotation is being rotated by the user.
Protected methodOnScrollPositionChanged
Called when the IAnnotate. Transform indicates a change in its offset (scroll position).
Protected methodOnSelectedChanged
Called when the Selected property of the annotation has changed.
Protected methodOnSizeChanged
Called when the Size property of the annotation has changed.
Public methodRaiseClickEvent
Use this method to force a Click event on the annotation.
Public methodRaiseDoubleClickEvent
Use this method to force a DoubleClick event on the annotation.
Public methodRaiseGripPositionChangedEvent
Use this method to force a GripPositionChanged event on the annotation.
Public methodRaiseMouseDownEvent
Use this method to force a MouseDown event on the annotation.
Public methodRaiseMouseEnterEvent
Use to force the MouseEnter event for the annotation.
Public methodRaiseMouseExitEvent
Use to force a MouseExit event on the annotation.
Public methodRaiseMouseMoveEvent
Use this method to force a MouseMove event on the annotation.
Public methodRaiseMouseUpEvent
Use this method to force a MouseUp event on the annotation.
Public methodRaiseMovedEvent
Use this method to force a Moved event on the annotation.
Public methodRaiseMovingEvent
Use this method to force a Moving event on the annotation.
Public methodRaiseOnRotateDocument
Use this method to force the OnRotateDocument(DocumentRotation) method to be called.
Public methodRaiseResizedEvent
Use this method to force a Resized event on the annotation.
Public methodRaiseRotatedEvent
This method invokes the Rotated event.
Public methodRaiseScrollPositionChangedEvent
Use this method to force the OnScrollPositionChanged(ScrollPositionChangedEventArgs) method to be called.
Public methodRemove
Forces the annotation to remove itself from its parent layer.
Public methodRotate
Rotates the annotation by the specified number of degrees.
Protected methodSetGrips
Sets the grips used by the annotation.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodTransformRectangle
Applies the render transformation matrix to a rectangle.
Top
Events
  NameDescription
Public eventAnnotationControllerNotification
Raised after a property value has been changed.
Public eventClick
Raised when the annotation has been clicked with the mouse.
Public eventDoubleClick
Raised when the annotation has been double-clicked with the mouse.
Public eventGripPositionChanged
Raised when a grip for the annotation has been moved.
Public eventMouseDown
Raised when a mouse button is pressed while on top of the annotation.
Public eventMouseEnter
Raised when the mouse enters the annotation region.
Public eventMouseExit
Raised when the mouse exists the annotation region.
Public eventMouseMove
Raised when the mouse is moved over the annotation.
Public eventMouseUp
Raised when the mouse button is released from an annotation.
Public eventMoved
Raised when the annotation has been moved.
Public eventMoving
Raised while the annotation is being moved.
Public eventPropertyChanged
Raised when a property value has changed.
Public eventPropertyChanging
Raised when a property of the annotation or AnnotationData is going to be changed.
Public eventResized
Raised when the annotation has been resized.
Public eventResizing
Raised while the annotation is being resized.
Public eventRotated
Raised after the annotation has been rotated by the user.
Public eventRotating
Raise while an annotation is being rotated.
Public eventSelectedChanged
Raised when the Selected property changes.
Top
See Also
Inheritance Hierarchy
SystemObject
  Atalasoft.Annotate.UIAnnotationUI
    Atalasoft.Annotate.InkInkAnnotation
    Atalasoft.Annotate.PdfPdfAnnotation
    Atalasoft.Annotate.UICalloutAnnotation
    Atalasoft.Annotate.UIEllipseAnnotation
    Atalasoft.Annotate.UIEmbeddedImageAnnotation
    Atalasoft.Annotate.UIHotSpotAnnotation
    Atalasoft.Annotate.UILayerAnnotation
    Atalasoft.Annotate.UILineAnnotation
    Atalasoft.Annotate.UIOcrRegionAnnotation
    Atalasoft.Annotate.UIPointBaseAnnotation
    Atalasoft.Annotate.UIRectangleAnnotation
    Atalasoft.Annotate.UIReferencedImageAnnotation
    Atalasoft.Annotate.UIRubberStampAnnotation
    Atalasoft.Annotate.UITextAnnotation