Forums     Knowledge Base     OfficeWriter Online     
 
 
This documentation is for
OfficeWriter v3.8.1
.NET Platform

View Docs for Another
Version or Platform

Programmer's Reference > WordApplication API > Styles > Item

Item Property


C# Signature:

VB.NET Signature:


Description:

Returns a NamedStyle object that represents the named style that has the specified string version of its name.

Item is a read only property.



Examples:

[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);


Getters

Signature:

public NamedStyle Item

Parameters:

String name A String that represents the name of the style's name to retrieve.

Returns:

NamedStyle A NamedStyle object that represents the named style that has the specified string version of its name or the specified index.

Signature:

public NamedStyle Item

Parameters:

NamedStyle.BuiltIn name A NamedStyle.BuiltIn object that represents the culture independent version name of the style to retrieve.

Returns:

NamedStyle A NamedStyle object that represents named style that has the specified culture independent version of its name.

Signature:

public NamedStyle Item

Parameters:

int index An int that represents index of the style to retrieve in the collection.

Returns:

NamedStyle A NamedStyle object that represents the named style that has the specified index in the collection.



Copyright 2007 © SoftArtisans, Inc. All Rights Reserved.