[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Page.SetTextRenderingAttrs

SetTextRenderingAttrs Method

SetTextRenderingAttrs(FindTextParams, TextRenderingAttrs)

Searches for a specified text on the current page and sets its rendering attributes.

Note that the search results may be affected by the current value of RecognitionAlgorithm.

Declaration
public void SetTextRenderingAttrs(FindTextParams findTextParams, TextRenderingAttrs attrs)
Parameters
Type Name Description
FindTextParams findTextParams

The text to search for.

TextRenderingAttrs attrs

The rendering attributes to apply to the found text.

SetTextRenderingAttrs(ViewState, TextMapFragment, TextRenderingAttrs)

Sets the rendering attributes for a specified text fragment on the current page.

Declaration
public void SetTextRenderingAttrs(ViewState viewState, TextMapFragment fragment, TextRenderingAttrs attrs)
Parameters
Type Name Description
ViewState viewState

The ViewState used to determine what document content should be taken into account.

TextMapFragment fragment

The text fragment.

TextRenderingAttrs attrs

The rendering attributes to apply to the specified fragment.

SetTextRenderingAttrs(TextMapFragment, TextRenderingAttrs)

Sets the rendering attributes for a specified text fragment on the current page.

Declaration
public void SetTextRenderingAttrs(TextMapFragment fragment, TextRenderingAttrs attrs)
Parameters
Type Name Description
TextMapFragment fragment

The text fragment.

TextRenderingAttrs attrs

The rendering attributes to apply to the specified fragment.