Click or drag to resize

CalloutAnnotation Constructor (String, AnnotationFont, AnnotationBrush, Single, AnnotationBrush, AnnotationPen, AnnotationPen, Single, PointF, Boolean)

Creates a new instance of CalloutAnnotation specifying its parameters.

Namespace:  Atalasoft.Annotate.UI
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public CalloutAnnotation(
	string text,
	AnnotationFont font,
	AnnotationBrush fontBrush,
	float padding,
	AnnotationBrush fill,
	AnnotationPen outline,
	AnnotationPen leader,
	float leaderFlatLength,
	PointF targetPosition,
	bool autoSize
)

Parameters

text
Type: SystemString
The text for the annotation.
font
Type: Atalasoft.AnnotateAnnotationFont
The font used to render the text.
fontBrush
Type: Atalasoft.AnnotateAnnotationBrush
The brush used to render the text.
padding
Type: SystemSingle
The amount of space around the text.
fill
Type: Atalasoft.AnnotateAnnotationBrush
The brush used to fill the text area of the annotation.
outline
Type: Atalasoft.AnnotateAnnotationPen
The pen used to render an outline around the text area of the annotation.
leader
Type: Atalasoft.AnnotateAnnotationPen
The pen used to render the line of the annotation.
leaderFlatLength
Type: SystemSingle
The length from the annotation to the leader bend.
targetPosition
Type: System.DrawingPointF
The document position the line will point to.
autoSize
Type: SystemBoolean
Indicates whether the annotation will automatically resize to fit the text.
Exceptions
ExceptionCondition
Thrown if the leaderFlatLength is less than 0.
See Also