aspose.diagram
Class TextBlock

Contains elements that specify the alignment, margins, and default tab stop positions of text in a shape's text block.

Property Getters/Setters Summary
functiongetBottomMargin()
functionsetBottomMargin(value)
           Determines the distance between the bottom border of the text block and the last line of text it contains. The default is 4 pt. This value is independent of the scale of the drawing. If the drawing is scaled, the bottom margin remains the same.
functiongetDefaultTabStop()
functionsetDefaultTabStop(value)
           Specifies the interval of the default tab stops in a text block.
functiongetDel()
functionsetDel(value)
           A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.
functiongetLeftMargin()
functionsetLeftMargin(value)
           Specifies the distance between the left border of the text block and the text it contains. This value is independent of the scale of the drawing. If the drawing is scaled, the left margin remains the same.
functiongetRightMargin()
functionsetRightMargin(value)
           Specifies the distance between the right border of the text block and the text it contains. This value is independent of the scale of the drawing. If the drawing is scaled, the right margin remains the same.
functiongetTextBkgnd()
functionsetTextBkgnd(value)
           Specifies the text background color for a shape.
functiongetTextBkgndTrans()
functionsetTextBkgndTrans(value)
           Specifies the transparency level for the background color of a shape's text block, from 0 (completely opaque) to 1 (completely transparent).
functiongetTextDirection()
functionsetTextDirection(value)
           Specifies the direction of the characters in a text block.
functiongetTopMargin()
functionsetTopMargin(value)
           Specifies the distance between the top border of the text block and the first line of text it contains.
functiongetVerticalAlign()
functionsetVerticalAlign(value)
           Specifies the vertical alignment of text within the text block.
 
Method Summary
functiondeepClone()
           Creates deep copy of this instance.
 

Property Getters/Setters Detail

getDel/setDel : Number 

function getDel() / function setDel(value)
A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.

getLeftMargin/setLeftMargin : DoubleValue 

function getLeftMargin() / function setLeftMargin(value)
Specifies the distance between the left border of the text block and the text it contains. This value is independent of the scale of the drawing. If the drawing is scaled, the left margin remains the same.

getRightMargin/setRightMargin : DoubleValue 

function getRightMargin() / function setRightMargin(value)
Specifies the distance between the right border of the text block and the text it contains. This value is independent of the scale of the drawing. If the drawing is scaled, the right margin remains the same.

getTopMargin/setTopMargin : DoubleValue 

function getTopMargin() / function setTopMargin(value)
Specifies the distance between the top border of the text block and the first line of text it contains.

getBottomMargin/setBottomMargin : DoubleValue 

function getBottomMargin() / function setBottomMargin(value)
Determines the distance between the bottom border of the text block and the last line of text it contains. The default is 4 pt. This value is independent of the scale of the drawing. If the drawing is scaled, the bottom margin remains the same.

getVerticalAlign/setVerticalAlign : VerticalAlign 

function getVerticalAlign() / function setVerticalAlign(value)
Specifies the vertical alignment of text within the text block.

getTextBkgnd/setTextBkgnd : ColorValue 

function getTextBkgnd() / function setTextBkgnd(value)
Specifies the text background color for a shape.

getDefaultTabStop/setDefaultTabStop : DoubleValue 

function getDefaultTabStop() / function setDefaultTabStop(value)
Specifies the interval of the default tab stops in a text block.

getTextDirection/setTextDirection : TextDirection 

function getTextDirection() / function setTextDirection(value)
Specifies the direction of the characters in a text block.

getTextBkgndTrans/setTextBkgndTrans : DoubleValue 

function getTextBkgndTrans() / function setTextBkgndTrans(value)
Specifies the transparency level for the background color of a shape's text block, from 0 (completely opaque) to 1 (completely transparent).

Method Detail

deepClone

function deepClone()
Creates deep copy of this instance.
Returns:

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.