Version

ApplyParagraphStyle Method

Applies specified paragraph style to paragraphs intersecting the specified span.
Syntax
'Declaration
 
Public Sub ApplyParagraphStyle( _
   ByVal span As DocumentSpan, _
   ByVal styleId As String, _
   ByRef error As String _
) 
public void ApplyParagraphStyle( 
   DocumentSpan span,
   string styleId,
   out string error
)

Parameters

span
Paragraphs intersecting this document span will be affected.
styleId
Id of a paragraph style in the root node's DocumentRootNode.Styles collection or AvailableStyles collection of the document. In the latter case the style will be copied from the available styles into the root node's styles collection.
error
If a paragraph style with the specified id doesn't exist or if any other error occurs, this will be set to the error message.
Remarks

ApplyParagraphStyle method applies style across multiple paragraphs that intersect the specified span.

Note that if any paragraph intersecting the span has a style id set, that will be reset to the specified styleId.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also