Gets a particular style from the collection.

GetItem(String)

public ParagraphStyle GetItem(string styleName);
Public Function GetItem(ByVal styleName As String) As ParagraphStyle

Parameters

Parameter Description
styleName Specifies the name of the style.

Return Value

The return value is null, if a style with the specified name is not contained in the collection. Otherwise it is an object of the type ParagraphStyle.