ts-visio - v1.16.27
    Preparing search index...

    Interface ShapeStyle

    Visual style properties applied to an existing shape via shape.setStyle(). All fields are optional; omitted properties are left unchanged.

    interface ShapeStyle {
        bold?: boolean;
        fillColor?: string;
        fontColor?: string;
        fontFamily?: string;
        fontSize?: number;
        horzAlign?: HorzAlign;
        italic?: boolean;
        lineColor?: string;
        linePattern?: number;
        lineSpacing?: number;
        lineWeight?: number;
        spaceAfter?: number;
        spaceBefore?: number;
        strikethrough?: boolean;
        textMarginBottom?: number;
        textMarginLeft?: number;
        textMarginRight?: number;
        textMarginTop?: number;
        underline?: boolean;
        verticalAlign?: VertAlign;
    }
    Index

    Properties

    bold?: boolean
    fillColor?: string
    fontColor?: string
    fontFamily?: string

    Font family name (e.g. "Arial").

    fontSize?: number

    Font size in points (e.g. 14 for 14pt).

    horzAlign?: HorzAlign

    Horizontal text alignment.

    italic?: boolean

    Italic text.

    lineColor?: string

    Border/stroke colour as a CSS hex string (e.g. '#cc0000').

    linePattern?: number

    Line pattern. 0 = none, 1 = solid (default), 2 = dash, 3 = dot, 4 = dash-dot.

    lineSpacing?: number

    Line-height multiplier (1.0 = single, 1.5 = 1.5×, 2.0 = double).

    lineWeight?: number

    Stroke weight in points. Stored internally as inches (pt / 72).

    spaceAfter?: number

    Space after each paragraph in points.

    spaceBefore?: number

    Space before each paragraph in points.

    strikethrough?: boolean

    Strikethrough text.

    textMarginBottom?: number

    Bottom text margin in inches.

    textMarginLeft?: number

    Left text margin in inches.

    textMarginRight?: number

    Right text margin in inches.

    textMarginTop?: number

    Top text margin in inches.

    underline?: boolean

    Underline text.

    verticalAlign?: VertAlign

    Vertical text alignment.