AnnotationPen Class |
Namespace: Atalasoft.Annotate
The AnnotationPen type exposes the following members.
Name | Description | |
---|---|---|
AnnotationPen(Color) | Creates a new instance of AnnotationPen specifying the color of the pen. | |
AnnotationPen(AnnotationBrush) | Creates a new instance of AnnotationPen from an AnnotationBrush object.
| |
AnnotationPen(Color, Single) | Creates a new instance of AnnotationPen specifying the color and width of the pen.
| |
AnnotationPen(SerializationInfo, StreamingContext) | Creates a new instance of AnnotationPen from serialized data. | |
AnnotationPen(AnnotationBrush, Single) | Creates a new instance of AnnotationPen specifying the AnnotationBrush and
pen width. |
Name | Description | |
---|---|---|
Alignment | Gets or sets the AnnotationPenAlignment for the pen. | |
Brush | Gets or sets the AnnotationBrush used to describe this pen. | |
Color | Gets or sets the color for the pen. | |
DashCap | Gets or sets the DashCap used at the end of the dashes that make up dashed lines drawn
with this pen. | |
DashOffset | Gets or sets the distance from the start of a line to the beginning of a dash pattern. | |
DashPattern | Gets or sets the dash pattern used | |
DashStyle | Gets or sets the style used for dashed lines drawn with this pen. | |
EndCap | Gets or sets the AnnotationLineCap used at the end of lines drawn with this pen. | |
LineJoin | Gets or sets the join style for the ends of two consecutive lines drawn with this pen. | |
MiterLimit | Gets or sets the limit of the thickness of the join on a mitered corner. | |
StartCap | Gets or sets the AnnotationLineCap used at the beginning of lines drawn with this pen. | |
Width | Gets or sets the width of the pen. |
Name | Description | |
---|---|---|
Clone | Creates a copy of this AnnotationPen. | |
Equals | Compares this AnnotationPen with another to test if they are equal. (Overrides ObjectEquals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Returns an identifier for this object. (Overrides ObjectGetHashCode.) | |
GetObjectData | Fills a SerializationInfo object with information about this AnnotationPen. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnAnnotationControllerNotification | Called to notify the AnnotationController after a property has been changed. | |
OnPropertyChanged | Called when a property value has changed and raises the PropertyChanged event.
| |
OnPropertyChanging | Called before a property is changed. | |
RemoveLineCapEvents | This is a helper method used to remove event handler for an AnnotationLineCap object.
| |
SetLineCapEvents | This is a helper method used to add event handling to an AnnotationLineCap. | |
ToString | Returns a string representation of this object. (Overrides ObjectToString.) |
Name | Description | |
---|---|---|
AnnotationControllerNotification | Raised after a property of the AnnotationBrush if modified. | |
PropertyChanged | Raised when a property value has changed. | |
PropertyChanging | Raised just before a property is about to be modified. |
RectangleAnnotation rect = new RectangleAnnotation(RectangleF.Empty, new AnnotationBrush(Color.Red), new AnnotationPen(Color.Black, 1)); ((RectangleGrips)rect.Grips).GripsToDisplay = RectangleGripDisplay.Both; this.annotateViewer1.Annotations.CreateAnnotation(rect);
Dim rect As RectangleAnnotation = New RectangleAnnotation(RectangleF.Empty,New AnnotationBrush(Color.Red),New AnnotationPen(Color.Black,1)) ((RectangleGrips)rect.Grips).GripsToDisplay = RectangleGripDisplay.Both Me.annotateViewer1.Annotations.CreateAnnotation(rect)