Class BaseTextItem
Constructors
(constructor)(text, fontPostScriptName, fontSize)
Constructs a new instance of the BaseTextItem class
Declaration
constructor(text?: string, fontPostScriptName?: string, fontSize?: number);
Parameters
| Type |
Name |
Description |
| string |
text |
|
| string |
fontPostScriptName |
|
| number |
fontSize |
|
Properties
alignment
Declaration
get alignment(): TextAlignment;
set alignment(value: TextAlignment);
Property Value
baselineShift
Declaration
get baselineShift(): number;
set baselineShift(value: number);
Property Value
characterLimit
Declaration
get characterLimit(): number;
set characterLimit(value: number);
Property Value
checkTextCrop
Declaration
get checkTextCrop(): boolean;
set checkTextCrop(value: boolean);
Property Value
color
Declaration
get color(): Color;
set color(value: Color);
Property Value
colorPalette
Declaration
get colorPalette(): Collection<Color>;
Property Value
font
Declaration
get font(): BaseTextItem.FontSettings;
set font(value: BaseTextItem.FontSettings);
Property Value
horizontalScale
Declaration
get horizontalScale(): number;
set horizontalScale(value: number);
Property Value
isTextPlaceholder
Declaration
isTextPlaceholder: boolean;
Property Value
leading
Declaration
get leading(): number;
set leading(value: number);
Property Value
listStyles
Declaration
Property Value
maxLineCount
Declaration
get maxLineCount(): number;
set maxLineCount(value: number);
Property Value
maxLineLength
Declaration
get maxLineLength(): number;
set maxLineLength(value: number);
Property Value
originalText
Declaration
get originalText(): string;
set originalText(value: string);
Property Value
overlapLinesEnabled
Declaration
get overlapLinesEnabled(): boolean;
set overlapLinesEnabled(value: boolean);
Property Value
overprintText
Declaration
get overprintText(): boolean;
set overprintText(value: boolean);
Property Value
placeholders
Declaration
get placeholders(): Collection<InStringPlaceholder>;
Property Value
previewFontSize
Declaration
get previewFontSize(): number;
set previewFontSize(value: number);
Property Value
previewLeading
Declaration
get previewLeading(): number;
set previewLeading(value: number);
Property Value
previewScale
Declaration
get previewScale(): number;
set previewScale(value: number);
Property Value
shadow
Declaration
get shadow(): ShadowSettings;
set shadow(value: ShadowSettings);
Property Value
stroke
Declaration
get stroke(): StrokeSettings;
set stroke(value: StrokeSettings);
Property Value
text
Declaration
get text(): string;
set text(value: string);
Property Value
textColorForAbnormalRendering
Declaration
textColorForAbnormalRendering: RgbColor;
Property Value
textPermissions
Declaration
get textPermissions(): TextPermissions;
set textPermissions(value: TextPermissions);
Property Value
tracking
Declaration
get tracking(): number;
set tracking(value: number);
Property Value
type
Declaration
Property Value
type
Declaration
Property Value
underline
Declaration
get underline(): boolean;
set underline(value: boolean);
Property Value
values
Declaration
values: BaseTextItem.BaseTextValue[];
Property Value
verticalScale
Declaration
get verticalScale(): number;
set verticalScale(value: number);
Property Value
violationSettings
Declaration
get violationSettings(): TextViolationSettings;
set violationSettings(value: TextViolationSettings);
Property Value
| Type |
Description |
| TextViolationSettings |
|
Methods
_canSetIsVariable()
Declaration
protected _canSetIsVariable(): boolean;
Returns
_copy(source, destination, generateNewIds, appropriateParentContainer)
Declaration
protected _copy(source: BaseTextItem, destination: BaseTextItem, generateNewIds: boolean, appropriateParentContainer: boolean): void;
Parameters
| Type |
Name |
Description |
| BaseTextItem |
source |
|
| BaseTextItem |
destination |
|
| boolean |
generateNewIds |
|
| boolean |
appropriateParentContainer |
|
Returns
_setViolationSettings(value, skipTypeCheck)
Declaration
protected _setViolationSettings(value: TextViolationSettings, skipTypeCheck?: boolean): void;
Parameters
| Type |
Name |
Description |
| TextViolationSettings |
value |
|
| boolean |
skipTypeCheck |
|
Returns
applyPermissionsConstrain()
Declaration
applyPermissionsConstrain(): void;
Returns
equals(other)
Declaration
equals(other: BaseTextItem): boolean;
Parameters
Returns
getSimplifiedObject(omitProperties)
Declaration
getSimplifiedObject(omitProperties?: string[] | string): Object;
Parameters
| Type |
Name |
Description |
| string[] | string |
omitProperties |
|
Returns
getUpdatedText(text)
Declaration
getUpdatedText(text: string): string;
Parameters
| Type |
Name |
Description |
| string |
text |
|
Returns
isEmpty()
Declaration
Returns
isEmptyText()
Declaration
Returns
isEmptyXmlText()
Declaration
isEmptyXmlText(): boolean;
Returns