|
|||||||||
| prev class next class | frames no frames | ||||||||
| summary: nested | field | constr | method | detail: field | constr | method | ||||||||
java.lang.objectcom.spire.doc.ownerholder
com.spire.doc.documents.xml.documentserializable
com.spire.doc.documents.style
public abstract class style
base class for paragraph and character styles.
| constructor summary | |
|---|---|
protected |
style(document doc)
initializes a new instance of the style class. |
| method summary | |
|---|---|
void |
applybasestyle(builtinstyle bstyle)
applies the base style |
void |
applybasestyle(java.lang.string stylename)
apply base style for current style. |
void |
clearrunattrs()
clears run attributes. |
static style |
createbuiltinstyle(builtinstyle bstyle,
document doc)
creates the built-in paragraph style. |
static istyle |
createbuiltinstyle(builtinstyle bstyle,
styletype type,
document doc)
creates the built-in style. |
abstract istyle |
deepclone()
clones itself |
java.lang.object |
fetchinheritedrunattr(int key)
gets the attribute from one of the parents or from global defaults. |
characterformat |
getcharacterformat()
gets the character format. |
builtinstyle |
getdefaultstyletype()
built-in word style. |
java.lang.object |
getdirectrunattr(int key)
gets the attribute specified directly on the source or null by the key. |
void |
getdirectrunattrbyindex(int index,
int[] key,
java.lang.object[] value)
gets the attribute specified directly on the source by the index. |
int |
getdirectrunattrscount()
count of attribute records in direct formatting. |
java.lang.string |
getname()
returns or setsstyle name. |
java.lang.string |
getstyleid()
gets the style id. |
abstract styletype |
getstyletype()
gets the type of the style. |
boolean |
iscustomstyle()
gets a value indicating whether this instance is custom style. |
void |
iscustomstyle(boolean value)
sets a value indicating whether this instance is custom style. |
static builtinstyle |
nametobuiltin(java.lang.string stylename)
converts string style names to builtinstyle. |
void |
setname(java.lang.string value)
sets the style name. |
void |
setrunattr(int key,
java.lang.object value)
sets run attribute. |
| methods inherited from class com.spire.doc.ownerholder |
|---|
getdocument |
| constructor detail |
|---|
protected style(document doc)
style class.
doc - the doc.| method detail |
|---|
public characterformat getcharacterformat()
public java.lang.string getname()
getname in interface istylepublic void setname(java.lang.string value)
istylesetname in interface istylevalue - stringpublic java.lang.string getstyleid()
getstyleid in interface istylepublic abstract styletype getstyletype()
getstyletype in interface istylepublic builtinstyle getdefaultstyletype()
public boolean iscustomstyle()
public void iscustomstyle(boolean value)
value - if this instance is custom, set to truepublic void applybasestyle(java.lang.string stylename)
stylename - stylenamepublic void applybasestyle(builtinstyle bstyle)
bstyle - the built-in style.public abstract istyle deepclone()
deepclone in interface istylepublic static style createbuiltinstyle(builtinstyle bstyle,
document doc)
bstyle - the built in styledoc - the document.
public static istyle createbuiltinstyle(builtinstyle bstyle,
styletype type,
document doc)
bstyle - the built-in styletype - the typedoc - the document
public static builtinstyle nametobuiltin(java.lang.string stylename)
stylename - name of the style.
public java.lang.object getdirectrunattr(int key)
irunattrsourcegetdirectrunattr in interface irunattrsourcekey - key
public int getdirectrunattrscount()
irunattrsourcegetdirectrunattrscount in interface irunattrsourcepublic void getdirectrunattrbyindex(int index,
int[] key,
java.lang.object[] value)
irunattrsourcegetdirectrunattrbyindex in interface irunattrsourceindex - intkey - leysvalue - objectspublic java.lang.object fetchinheritedrunattr(int key)
irunattrsourcefetchinheritedrunattr in interface irunattrsourcekey - key
public void setrunattr(int key,
java.lang.object value)
irunattrsourcesetrunattr in interface irunattrsourcekey - keyvalue - objectpublic void clearrunattrs()
irunattrsourceclearrunattrs in interface irunattrsource
|
|||||||||
| prev class next class | frames no frames | ||||||||
| summary: nested | field | constr | method | detail: field | constr | method | ||||||||