public final class DocumentPartOptions extends Object
Provides the options for the document's part.
Modifier and Type | Field and Description |
---|---|
static DocumentPartOptions |
EMPTY
An instance with empty options.
|
static DocumentPartOptions |
INLINE
An instance with options for inline element.
|
Constructor and Description |
---|
DocumentPartOptions()
Initializes a new instance of the
DocumentPartOptions class. |
DocumentPartOptions(Integer maxWidth)
Initializes a new instance of the
DocumentPartOptions class. |
DocumentPartOptions(Integer maxWidth,
Integer tabSize)
Initializes a new instance of the
DocumentPartOptions class. |
DocumentPartOptions(Integer maxWidth,
Integer tabSize,
String style)
Initializes a new instance of the
DocumentPartOptions class. |
DocumentPartOptions(Integer maxWidth,
Integer tabSize,
String style,
boolean isInline)
Initializes a new instance of the
DocumentPartOptions class. |
Modifier and Type | Method and Description |
---|---|
Integer |
getMaxWidth()
Gets a maximum string length.
|
String |
getStyle()
Gets a style of the document's part.
|
int |
getTabSize()
Gets a tab size.
|
boolean |
isInline()
Gets a value indicating whether the element is inline.
|
public static final DocumentPartOptions EMPTY
An instance with empty options.
public static final DocumentPartOptions INLINE
An instance with options for inline element.
public DocumentPartOptions()
Initializes a new instance of the DocumentPartOptions
class.
public DocumentPartOptions(Integer maxWidth)
Initializes a new instance of the DocumentPartOptions
class.
maxWidth
- Maximum length of the text.public DocumentPartOptions(Integer maxWidth, Integer tabSize)
Initializes a new instance of the DocumentPartOptions
class.
maxWidth
- Maximum length of the text.tabSize
- A count of the space characters for replace the tab symbol.public DocumentPartOptions(Integer maxWidth, Integer tabSize, String style)
Initializes a new instance of the DocumentPartOptions
class.
maxWidth
- Maximum length of the text.tabSize
- A count of the space characters for replace the tab symbol.style
- A style of the document's part.public DocumentPartOptions(Integer maxWidth, Integer tabSize, String style, boolean isInline)
Initializes a new instance of the DocumentPartOptions
class.
maxWidth
- Maximum length of the text.tabSize
- A count of the space characters for replace the tab symbol.style
- A style of the document's part.isInline
- A boolean true if element is inline; otherwise, false.public Integer getMaxWidth()
Gets a maximum string length.
public int getTabSize()
Gets a tab size.
public String getStyle()
Gets a style of the document's part.
public boolean isInline()
Gets a value indicating whether the element is inline.
Copyright © 2018. All rights reserved.