|
|||||||||
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.
Nested Class Summary | |
---|---|
static class |
Style.BuiltinStyleLoader
The base class BuiltinStyleLoader specifies Built-in styles. |
Constructor Summary | |
---|---|
protected |
Style(Document doc)
|
Method Summary | |
---|---|
void |
applyBaseStyle(BuiltinStyle bStyle)
Applies the base style. |
void |
applyBaseStyle(java.lang.String styleName)
Apply base style for current style. |
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 |
CharacterFormat |
getCharacterFormat()
Gets the character format. |
java.lang.String |
getName()
Returns or sets style name. |
java.lang.String |
getStyleId()
Gets or sets the style id. |
abstract StyleType |
getStyleType()
Gets the type of the style. |
boolean |
isCustomStyle()
Gets or sets a value indicating whether this instance is custom style. |
void |
isCustomStyle(boolean value)
Gets or sets a value indicating whether this instance is custom style. |
boolean |
isHeading()
|
static BuiltinStyle |
nameToBuiltIn(java.lang.String styleName)
Converts string style names to BuiltinStyle. |
void |
setName(java.lang.String value)
Returns or sets style name. |
Methods inherited from class com.spire.doc.OwnerHolder |
---|
getDocument |
Constructor Detail |
---|
protected Style(Document doc)
Method Detail |
---|
public CharacterFormat getCharacterFormat()
public java.lang.String getName()
getName
in interface IStyle
public void setName(java.lang.String value)
setName
in interface IStyle
value
- Stringpublic java.lang.String getStyleId()
getStyleId
in interface IStyle
public abstract StyleType getStyleType()
getStyleType
in interface IStyle
public boolean isCustomStyle()
public void isCustomStyle(boolean value)
public boolean isHeading()
public void applyBaseStyle(java.lang.String styleName)
styleName
- public 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 style.doc
- The document.
public static IStyle createBuiltinStyle(BuiltinStyle bStyle, StyleType type, Document doc)
bStyle
- The built-in style.type
- The type.doc
- The document.
public static BuiltinStyle nameToBuiltIn(java.lang.String styleName)
styleName
- Name of the style.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |