GetStyle Method

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:25

Description

Returns a Style object describing the text or paragraph style at the cursor position.

It return a valid value only is HasStyle returns true - specifically when the cursor is inside a markup command that IS a paragraph style or text style or when the cursor is on a text that has a text style applied.

Syntax

object.GetStyle

object

Required. Object name, returned by objCursor created through Text.GetCursor.

Example

Dim objCur = Text.GetCursor(modeSrcOn,cposCursor,False)

Dim objdesc As TxtPosDesc = objCur.GetDesc

Value = objDesc.GetStyle

Remarks

This functionality is not available in objects returned by Text.GetTextStatus, Text.GetParaTextStatus and Text.GetDefaultTextStatus functions..