[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Page.DrawAnnotations

DrawAnnotations Method

DrawAnnotations(GcGraphics, RectangleF, IList<AnnotationBase>, RenderingCache, bool)

Draws specified annotations on a GcGraphics.

Note that the specified annotations must belong to the current page.

Declaration
public void DrawAnnotations(GcGraphics graphics, RectangleF bounds, IList<AnnotationBase> annotations, RenderingCache renderingCache = null, bool ignoreErrors = true)
Public Sub DrawAnnotations(graphics As GcGraphics, bounds As RectangleF, annotations As IList(Of AnnotationBase), Optional renderingCache As RenderingCache = Nothing, Optional ignoreErrors As Boolean = True)
Parameters
Type Name Description
GcGraphics graphics

The GcGraphics on which to draw the annotations.

RectangleF bounds

The draw bounds.

IList<AnnotationBase> annotations

The list of annotations to draw.

RenderingCache renderingCache

The RenderingCache object used to cache objects created during rendering.

bool ignoreErrors

Indicates whether to ignore errors in PDF content stream during rendering.

DrawAnnotations(GcGraphics, RectangleF, IList<AnnotationBase>, ViewState, RenderingCache, bool, DrawAnnotationFilterCallback)

Draws specified annotations on a GcGraphics.

Note that the specified annotations must belong to the current page.

Declaration
public void DrawAnnotations(GcGraphics graphics, RectangleF bounds, IList<AnnotationBase> annotations, ViewState viewState, RenderingCache renderingCache = null, bool ignoreErrors = true, SaveAsImageOptions.DrawAnnotationFilterCallback drawAnnotationFilter = null)
Public Sub DrawAnnotations(graphics As GcGraphics, bounds As RectangleF, annotations As IList(Of AnnotationBase), viewState As ViewState, Optional renderingCache As RenderingCache = Nothing, Optional ignoreErrors As Boolean = True, Optional drawAnnotationFilter As SaveAsImageOptions.DrawAnnotationFilterCallback = Nothing)
Parameters
Type Name Description
GcGraphics graphics

The GcGraphics on which to draw the annotations.

RectangleF bounds

The draw bounds.

IList<AnnotationBase> annotations

The list of annotations to draw.

ViewState viewState

The ViewState object.

RenderingCache renderingCache

The RenderingCache object used to cache objects created during rendering.

bool ignoreErrors

Indicates whether to ignore errors in PDF content stream during rendering.

SaveAsImageOptions.DrawAnnotationFilterCallback drawAnnotationFilter

Used to check should be annotation rendered or not.

DrawAnnotations(GcGraphics, RectangleF, RenderingCache)

Draws all page annotations on a GcGraphics.

Declaration
public void DrawAnnotations(GcGraphics graphics, RectangleF bounds, RenderingCache renderingCache = null)
Public Sub DrawAnnotations(graphics As GcGraphics, bounds As RectangleF, Optional renderingCache As RenderingCache = Nothing)
Parameters
Type Name Description
GcGraphics graphics

The GcGraphics on which to draw the annotations.

RectangleF bounds

The draw bounds.

RenderingCache renderingCache

The RenderingCache object used to cache objects created during rendering.