Click or drag to resize

WpfCalloutAnnotation Constructor (Rect, Point, String, AnnotationFont, AnnotationBrush, AnnotationPen, Double, AnnotationBrush, AnnotationPen, AnnotationBrush, Point, Double, StringAlignment, StringAlignment)

Creates a new instance of WpfCalloutAnnotation specifying its properties.

Namespace:  Atalasoft.Annotate.Wpf
Assembly:  Atalasoft.dotImage.Wpf (in Atalasoft.dotImage.Wpf.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public WpfCalloutAnnotation(
	Rect bounds,
	Point targetPosition,
	string text,
	AnnotationFont font,
	AnnotationBrush fontBrush,
	AnnotationPen leader,
	double leaderFlatLength,
	AnnotationBrush fill,
	AnnotationPen outline,
	AnnotationBrush shadow,
	Point shadowOffset,
	double padding,
	StringAlignment alignement,
	StringAlignment lineAlignment
)

Parameters

bounds
Type: System.WindowsRect
The bounds for the annotation.
targetPosition
Type: System.WindowsPoint
The target position for the callout.
text
Type: SystemString
The text of the annotation.
font
Type: Atalasoft.AnnotateAnnotationFont
The font used by the annotation.
fontBrush
Type: Atalasoft.AnnotateAnnotationBrush
The brush used to render the text.
leader
Type: Atalasoft.AnnotateAnnotationPen
The pen used to render the leader.
leaderFlatLength
Type: SystemDouble
The length of the leader line to the bend.
fill
Type: Atalasoft.AnnotateAnnotationBrush
The brush used to fill the annotation. This can be null (Nothing in VB).
outline
Type: Atalasoft.AnnotateAnnotationPen
The pen used to draw the annotation outline. This can be null (Nothing in VB).
shadow
Type: Atalasoft.AnnotateAnnotationBrush
The brush used for the annotation shadow. This can be null (Nothing in VB).
shadowOffset
Type: System.WindowsPoint
The offset of the shadow from the annotation.
padding
Type: SystemDouble
The amount of padding around the annotation text.
alignement
Type: System.DrawingStringAlignment
The horizontal text alignment.
lineAlignment
Type: System.DrawingStringAlignment
The vertical text alignment.
See Also