|
|||||||||
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 istyle
public void setname(java.lang.string value)
istyle
setname
in interface istyle
value
- stringpublic java.lang.string getstyleid()
getstyleid
in interface istyle
public abstract styletype getstyletype()
getstyletype
in interface istyle
public 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 istyle
public 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)
irunattrsource
getdirectrunattr
in interface irunattrsource
key
- key
public int getdirectrunattrscount()
irunattrsource
getdirectrunattrscount
in interface irunattrsource
public void getdirectrunattrbyindex(int index, int[] key, java.lang.object[] value)
irunattrsource
getdirectrunattrbyindex
in interface irunattrsource
index
- intkey
- leysvalue
- objectspublic java.lang.object fetchinheritedrunattr(int key)
irunattrsource
fetchinheritedrunattr
in interface irunattrsource
key
- key
public void setrunattr(int key, java.lang.object value)
irunattrsource
setrunattr
in interface irunattrsource
key
- keyvalue
- objectpublic void clearrunattrs()
irunattrsource
clearrunattrs
in interface irunattrsource
|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |