|
ASPOSE home | ||||||||
java.lang.Object
com.aspose.words.Styles
public class Styles
| Property Getters/Setters Summary | ||
|---|---|---|
int | getCount() | |
| Gets the number of styles in the collection. | ||
Document | getDocument() | |
| Gets the owner document. | ||
Style | get(int index) | |
| Gets a style by index. | ||
Style | get(java.lang.String name) | |
| Gets a style by name or alias. | ||
Style | getByStyleIdentifier(int sti) | |
| Gets a built-in style by its locale independent identifier. | ||
| Method Summary | ||
|---|---|---|
Style | add(int type, java.lang.String name) | |
| Creates a new user defined style and adds it the collection. | ||
java.util.Iterator | iterator() | |
| Gets the enumerator object that will enumerate styles in the alphabetical order of their names. | ||
| Property Getters/Setters Detail |
|---|
getDocument | |
public Document getDocument() | |
getCount | |
public int getCount() | |
get | |
public Style get(java.lang.String name) | |
Case sensitive, returns null if the style with the given name is not found.
If this is an English name of a built in style that does not yet exist, automatically creates it.
getByStyleIdentifier | |
public Style getByStyleIdentifier(int sti) | |
When accessing a style that does not yet exist, automatically creates it.
sti - A get | |
public Style get(int index) | |
| Method Detail |
|---|
iterator | |
public java.util.Iterator iterator() | |
add | |
public Style add(int type, java.lang.String name) | |
You can create character, paragraph or a list style.
When creating a list style, the style is created with default numbered list formatting (1 \ a \ i).
Throws an exception if a style with this name already exists.
type - A name - Case sensitive name of the style to create.
|
ASPOSE home | ||||||||