API / geotoolkit / report / edit / properties / ITextStyleProperties / ITextStyleProperties
properties.ITextStyleProperties.ITextStyleProperties
Define text style properties interface
Interface
Constructors
Methods
Methods
▸ Abstract clearTextFormatting(): ITextStyleProperties
Clear custom text style (restore to default Report Settings)
▸ Abstract getBackgroundColor(): string | RgbaColor
Returns element background color
string | RgbaColor
return element background color
▸ Abstract getColor(): string | RgbaColor
Returns text style color
string | RgbaColor
return text color
▸ Abstract getFontFamily(): string
Return font family
string
return font family
▸ Abstract getHighlightColor(): string | RgbaColor
Returns text highlight color
string | RgbaColor
return text highlight color
▸ Abstract getTextAlignment(): string
Returns text alignment
string
return text alignment
▸ Abstract getTextSize(): string | number
Return text size
string | number
return text size
▸ Abstract getTextStyle(): TextStyle
Return text style
return text style
▸ Abstract hasCustomTextFormatting(): boolean
Return true if text has custom text style declared in attribute
boolean
return true if text has custom format declared in attribute
▸ Abstract isBold(): boolean
Return true if text style is bold
boolean
return true if text style is bold
▸ Abstract isItalic(): boolean
Return true if text style is italic
boolean
return true if text style is italic
▸ Abstract isStrikethrough(): boolean
Return true if text has strikethrough style
boolean
return true if text has underline style
▸ Abstract isUnderline(): boolean
Return true if text has underline style
boolean
return true if text has underline style
▸ Abstract setBackgroundColor(color): ITextStyleProperties
Set element background color
| Name | Type | Description |
|---|---|---|
color | string | element background color |
▸ Abstract setColor(color): ITextStyleProperties
Set text style color
| Name | Type | Description |
|---|---|---|
color | string | text style color |
▸ Abstract setDomElements(domElements): ITextStyleProperties
Set array of DOM Elements
| Name | Type | Description |
|---|---|---|
domElements | Element[] | DOM Elements |
▸ Abstract setFontFamily(fontFamily): ITextStyleProperties
Set font family
| Name | Type | Description |
|---|---|---|
fontFamily | string | font family |
▸ Abstract setHighlightColor(color): ITextStyleProperties
Set text highlight color
| Name | Type | Description |
|---|---|---|
color | string | text highlight color |
▸ Abstract setOnCreateState(callBack): ITextStyleProperties
Set Undo/Redo create state delegate
| Name | Type | Description |
|---|---|---|
callBack | (documentElement: Element | Element[], fullState: boolean) => IState | create undo/redo state delegate |
▸ Abstract setTextAlignment(alignment): ITextStyleProperties
Set text alignment
| Name | Type | Description |
|---|---|---|
alignment | string | text alignment |
▸ Abstract setTextSize(textSize): ITextStyleProperties
Set text size
| Name | Type | Description |
|---|---|---|
textSize | number | text size |
▸ Abstract setTextStyle(textStyle): ITextStyleProperties
Set text style
| Name | Type | Description |
|---|---|---|
textStyle | TextStyleProperties | text style |
▸ Abstract toggleBold(): ITextStyleProperties
Change bold style
▸ Abstract toggleItalic(): ITextStyleProperties
Change italic style
▸ Abstract toggleStrikethrough(): ITextStyleProperties
Change strikethrough style
▸ Abstract toggleUnderline(): ITextStyleProperties
Change underline style