AnnotationHelper Class

 

Provides utility methods and commands to create and delete highlight, ink sticky note, and text sticky note annotations.

Namespace:   System.Windows.Annotations
Assembly:  PresentationFramework (in PresentationFramework.dll)

System.Object
  System.Windows.Annotations.AnnotationHelper

public static class AnnotationHelper

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticClearHighlightsForSelection(AnnotationService)

Clears all highlight annotations from the current selection of the viewer control associated with the given AnnotationService.

System_CAPS_pubmethodSystem_CAPS_staticCreateHighlightForSelection(AnnotationService, String, Brush)

Creates a highlight annotation on the current selection of the viewer control associated with the specified AnnotationService.

System_CAPS_pubmethodSystem_CAPS_staticCreateInkStickyNoteForSelection(AnnotationService, String)

Creates an ink sticky note annotation on the current selection of the viewer control associated with the specified AnnotationService..

System_CAPS_pubmethodSystem_CAPS_staticCreateTextStickyNoteForSelection(AnnotationService, String)

Creates a text sticky note annotation on the current selection of the viewer control associated with the specified AnnotationService.

System_CAPS_pubmethodSystem_CAPS_staticDeleteInkStickyNotesForSelection(AnnotationService)

Deletes ink sticky note annotations that are wholly contained within the current selection of the viewer control associated with the given AnnotationService.

System_CAPS_pubmethodSystem_CAPS_staticDeleteTextStickyNotesForSelection(AnnotationService)

Deletes text sticky note annotations that are wholly contained within the current selection of the viewer control associated with the given AnnotationService.

System_CAPS_pubmethodSystem_CAPS_staticGetAnchorInfo(AnnotationService, Annotation)

Returns an IAnchorInfo object that provides anchoring information, such as the anchor location, about the specified annotation.

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: