AnnotationHelperCreateHighlightForSelection Method Document Toolkit Help
Creates a highlight annotation on the current selection of the viewer control associated with the specified AnnotationService.

Namespace: FirstFloor.Documents.Annotations
Assembly: FirstFloor.Documents (in FirstFloor.Documents.dll) Version: 2.5.0.0 (2.5.11.0)
Syntax

public static Annotation CreateHighlightForSelection(
	AnnotationService service,
	string author,
	Nullable<Color> highlightBackground
)

Parameters

service
Type: FirstFloor.Documents.AnnotationsAnnotationService
The service.
author
Type: SystemString
The author of the annotation.
highlightBackground
Type: SystemNullableColor
The color to use to draw the highlight over the selected content.

Return Value

Type: Annotation
The created highlight annotation.
Remarks

If the current text selection is empty, null is returned.
See Also

Reference