Add a new text annotation

Namespace: Ico.Windows.Media.Media3D
Assembly: Ico3DControlsLibrary (in Ico3DControlsLibrary.dll) Version: 10.97.212.0 (10.97.212.00)

Syntax

C#
public AnnotationCanvas AddTextAnnotation(
	string text,
	Point3D position,
	Point3D anchorPoint,
	double fontSize,
	Brush foreground,
	Brush background,
	Color lineColor
)
Visual Basic
Public Function AddTextAnnotation ( _
	text As String, _
	position As Point3D, _
	anchorPoint As Point3D, _
	fontSize As Double, _
	foreground As Brush, _
	background As Brush, _
	lineColor As Color _
) As AnnotationCanvas
JScript
public function AddTextAnnotation(
	text : String, 
	position : Point3D, 
	anchorPoint : Point3D, 
	fontSize : double, 
	foreground : Brush, 
	background : Brush, 
	lineColor : Color
) : AnnotationCanvas

Parameters

text
Type: System..::..String
The text for the annotation
position
Type: System.Windows.Media.Media3D..::..Point3D
The position of the annotation
anchorPoint
Type: System.Windows.Media.Media3D..::..Point3D
The anchor point of the annotatation
fontSize
Type: System..::..Double
The size of the font used for the annotation
foreground
Type: System.Windows.Media..::..Brush
The foreground brush for the annotation
background
Type: System.Windows.Media..::..Brush
The background brush for the annotation
lineColor
Type: System.Windows.Media..::..Color
The color of the line used for anchoring the annotation

Return Value

The AnnotationCanvas that was created

See Also