Programmer's Reference > WordApplication API > Styles > Item
Returns a NamedStyle object that represents the named style that has the specified string version of its name.
NamedStyle
Item is a read only property.
[csharp]
// Get Style by name NamedStyle myStyle = styls.get_Style("MyStyle"); // Get Style by ID NamedStyle styleZero = styls.get_Styl(0);
[vbnet]
' Get Style by name Dim myStyle As NamedStyle = styls.Style("MyStyle") ' Get Styl by ID Dim styleZero As NamedStyle = styls.Style(0);
public NamedStyle Item
String
NamedStyle.BuiltIn
int
Copyright 2007 © SoftArtisans, Inc. All Rights Reserved.