Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 2.74 KB

scribing.textstyle.md

File metadata and controls

32 lines (21 loc) · 2.74 KB

Home > scribing > TextStyle

TextStyle class

Represents the styling that is applied to text.

Signature:

/** @sealed */
export declare class TextStyle extends TextStyleBase implements Readonly<TextStyleProps> 

Extends: TextStyleBase

Implements: Readonly<TextStyleProps>

Constructors

Constructor Modifiers Description
(constructor)(props) Constructs a new instance of the TextStyle class

Properties

Property Modifiers Type Description
classType

static

readonly

import("paratype").Type<import("paratype").RecordObject<Partial<{ bold: boolean; italic: boolean; underline: boolean; strike: boolean; baseline: "sub" | "normal" | "super"; fontFamily: "body" | "heading" | "monospace" | "cursive" | "decorative"; fontSize: number; link: Interaction | null; color: "default" | "subtle" | "primary" | "secondary" | "information" | "success" | "warning" | "error"; spellcheck: boolean; translate: boolean; lang: string; }>, Partial<{ bold: boolean; italic: boolean; underline: boolean; strike: boolean; baseline: "sub" | "normal" | "super"; fontFamily: "body" | "heading" | "monospace" | "cursive" | "decorative"; fontSize: number; link: Interaction | null; color: "default" | "subtle" | "primary" | "secondary" | "information" | "success" | "warning" | "error"; spellcheck: boolean; translate: boolean; lang: string; }>> & import("paratype").Equatable & Readonly<Partial<{ bold: boolean; italic: boolean; underline: boolean; strike: boolean; baseline: "sub" | "normal" | "super"; fontFamily: "body" | "heading" | "monospace" | "cursive" | "decorative"; fontSize: number; link: Interaction | null; color: "default" | "subtle" | "primary" | "secondary" | "information" | "success" | "warning" | "error"; spellcheck: boolean; translate: boolean; lang: string; }>> & TextStyle> The run-time type that represents this class
empty

static

readonly

TextStyle Gets an empty text style
isEmpty readonly boolean Determines whether the current style is empty