Version

Add Method (RichTextStyleCollection)

Adds the specified style to the collection. If the style already exists in the collection then this method does nothing.
Syntax
'Declaration
 
Public Shadows Sub Add( _
   ByVal style As RichTextStyleBase _
) 
public new void Add( 
   RichTextStyleBase style
)

Parameters

style
RichTextStyleBase instance to add.
Remarks

Adds the specified style to this collection. The style's RichTextStyleBase.Id must be set to a non-empty string. If the style already exists in the collection then this method does nothing. If a different style with the same Id exists in the collection then an exception is raised.

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