MsoTextFrame

MsoTextFrame class

Represents the text frame in a Shape object.

class MsoTextFrame;

Methods

MethodDescription
getAutoSize()Indicates if size of shape is adjusted automatically according to its content.
setAutoSize(boolean)Indicates if size of shape is adjusted automatically according to its content.
isAutoMargin()Indicates whether the margin is auto calculated.
setIsAutoMargin(boolean)Indicates whether the margin is auto calculated.
getRotateTextWithShape()Indicates whether rotating text with shape.
setRotateTextWithShape(boolean)Indicates whether rotating text with shape.
getLeftMarginPt()Returns the left margin in unit of Points
setLeftMarginPt(number)Returns the left margin in unit of Points
getRightMarginPt()Returns the right margin in unit of Points
setRightMarginPt(number)Returns the right margin in unit of Points
getTopMarginPt()Returns the top margin in unit of Points
setTopMarginPt(number)Returns the top margin in unit of Points
getBottomMarginPt()Returns the bottom margin in unit of Points
setBottomMarginPt(number)Returns the bottom margin in unit of Points
isNull()Checks whether the implementation object is null.

getAutoSize()

Indicates if size of shape is adjusted automatically according to its content.

getAutoSize() : boolean;

setAutoSize(boolean)

Indicates if size of shape is adjusted automatically according to its content.

setAutoSize(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

isAutoMargin()

Indicates whether the margin is auto calculated.

isAutoMargin() : boolean;

setIsAutoMargin(boolean)

Indicates whether the margin is auto calculated.

setIsAutoMargin(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

getRotateTextWithShape()

Indicates whether rotating text with shape.

getRotateTextWithShape() : boolean;

setRotateTextWithShape(boolean)

Indicates whether rotating text with shape.

setRotateTextWithShape(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

getLeftMarginPt()

Returns the left margin in unit of Points

getLeftMarginPt() : number;

setLeftMarginPt(number)

Returns the left margin in unit of Points

setLeftMarginPt(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getRightMarginPt()

Returns the right margin in unit of Points

getRightMarginPt() : number;

setRightMarginPt(number)

Returns the right margin in unit of Points

setRightMarginPt(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getTopMarginPt()

Returns the top margin in unit of Points

getTopMarginPt() : number;

setTopMarginPt(number)

Returns the top margin in unit of Points

setTopMarginPt(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getBottomMarginPt()

Returns the bottom margin in unit of Points

getBottomMarginPt() : number;

setBottomMarginPt(number)

Returns the bottom margin in unit of Points

setBottomMarginPt(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

isNull()

Checks whether the implementation object is null.

isNull() : boolean;