Class TextBox
java.lang.Object
com.independentsoft.office.odf.drawing.FrameContentElement
com.independentsoft.office.odf.drawing.TextBox
- All Implemented Interfaces:
IContentElement
The Class TextBox.
-
Field Summary
Fields inherited from class com.independentsoft.office.odf.drawing.FrameContentElement
parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a Change object to the content.voidAdds a ChangeEnd object to the content.voidadd(ChangeStart changeStart)Adds a ChangeStart object to the content.voidAdds a Shape object to the content.voidAdds a Heading object to the content.voidadd(IndexOfIllustrations index)Adds an IndexOfIllustrations object to the content.voidadd(ITextContent textContent)Adds a ITextContent object to the content.voidAdds a List object to the content.voidAdds a Paragraph object to the content.voidAdds a Section object to the content.voidadd(SoftPageBreak softPageBreak)Adds a SoftPageBreak object to the content.voidAdds a Table object to the content.voidadd(TableOfContents toc)Adds a TableOfContents object to the content.clone()Creates a new object that is a deep copy of the current instance.getChain()Gets the name that is used to chain text boxes together for cases where the content of a text box exceeds its capacity.Contains a collection of ITextContent objects.Returns all content elements.Gets the radius of the circle used to round off the corners of a caption, rectangle, or a text-box.Gets the maximum height of a text box.Gets the maximum width of a text box.If set, it overrides the height of a text box.If set, it overrides the width of a text box.Returns the parent content element.voidSets the name that is used to chain text boxes together for cases where the content of a text box exceeds its capacity.voidsetCornerRadius(Size cornerRadius)Sets the radius of the circle used to round off the corners of a caption, rectangle, or a text-box.voidsetMaxHeight(Size maxHeight)Sets the maximum height of a text box.voidsetMaxWidth(Size maxWidth)Sets the maximum width of a text box.voidsetMinHeight(Size minHeight)If set, it overrides the height of a text box.voidsetMinWidth(Size minWidth)If set, it overrides the width of a text box.voidsetParent(IContentElement parent)Sets the parent content element.toString()Converts the value of the current TextBox object to its equivalent string representation.
-
Constructor Details
-
TextBox
public TextBox()Initializes a new instance of the TextBox class.
-
-
Method Details
-
add
Adds a Change object to the content.- Parameters:
change- the change
-
add
Adds a ChangeEnd object to the content.- Parameters:
changeEnd- the change end
-
add
Adds a ChangeStart object to the content.- Parameters:
changeStart- the change start
-
add
Adds a Shape object to the content.- Parameters:
shape- the shape
-
add
Adds an IndexOfIllustrations object to the content.- Parameters:
index- the index
-
add
Adds a Heading object to the content.- Parameters:
heading- the heading
-
add
Adds a List object to the content.- Parameters:
list- the list
-
add
Adds a Paragraph object to the content.- Parameters:
paragraph- the paragraph
-
add
Adds a Section object to the content.- Parameters:
section- the section
-
add
Adds a SoftPageBreak object to the content.- Parameters:
softPageBreak- the soft page break
-
add
Adds a Table object to the content.- Parameters:
table- the table
-
add
Adds a TableOfContents object to the content.- Parameters:
toc- the toc
-
add
Adds a ITextContent object to the content.- Parameters:
textContent- the text content
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Specified by:
getContentElementsin classFrameContentElement- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Overrides:
getParentin classFrameContentElement- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Overrides:
setParentin classFrameContentElement- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceIContentElement- Specified by:
clonein classFrameContentElement- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current TextBox object to its equivalent string representation. -
getContent
Contains a collection of ITextContent objects.- Returns:
- the content
-
getChain
Gets the name that is used to chain text boxes together for cases where the content of a text box exceeds its capacity.- Returns:
- the chain
-
setChain
Sets the name that is used to chain text boxes together for cases where the content of a text box exceeds its capacity.- Parameters:
chain- the new chain
-
getCornerRadius
Gets the radius of the circle used to round off the corners of a caption, rectangle, or a text-box.- Returns:
- the corner radius
-
setCornerRadius
Sets the radius of the circle used to round off the corners of a caption, rectangle, or a text-box.- Parameters:
cornerRadius- the new corner radius
-
getMinHeight
If set, it overrides the height of a text box.- Returns:
- the min height
-
setMinHeight
If set, it overrides the height of a text box.- Parameters:
minHeight- the new min height
-
getMinWidth
If set, it overrides the width of a text box.- Returns:
- the min width
-
setMinWidth
If set, it overrides the width of a text box.- Parameters:
minWidth- the new min width
-
getMaxHeight
Gets the maximum height of a text box.- Returns:
- the max height
-
setMaxHeight
Sets the maximum height of a text box.- Parameters:
maxHeight- the new max height
-
getMaxWidth
Gets the maximum width of a text box.- Returns:
- the max width
-
setMaxWidth
Sets the maximum width of a text box.- Parameters:
maxWidth- the new max width
-