GetObjectProperty

Retrieves a property value from a chart object.

Syntax

GetObjectProperty(
  name: string,
  index: ObjProp | number,
  isStatic: boolean = false
  ): number | string

Parameters

Parameter
Type
Description

name

string

The name of the object

index

ObjProp | number

The property identifier

isStatic

boolean

Optional. Whether the object is static (default: false)

Return Value

Returns either a number or string depending on the property type.

Description

The GetObjectProperty method retrieves a property value from a specified chart object. It can return either numeric or string properties depending on the property identifier provided.

See ObjProp for a complete list of available object properties.

Example

Last updated