Description

Property used to set or get the visual appearance of a graphic object.

Property type

A mcGraphObjStyle enumeration.  

Syntax

object.Style([mgosMask]) [= value]

The Style Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McGraphObjRect.
mgosMaskOptional. A mcGraphObjStyle enumeration, as described in settings.

An optional mask for the Style bits to be set or exposed. By default, all bits are set on assignment and exposed on access.

[in, defaultvalue(mcgsAllBitsMask)]

[in, defaultvalue(mcgsAllBitsMask)]

valueA mcGraphObjStyle enumeration, as described in settings.

Settings

The settings for mgosMask are:

ConstantValueDescription
 mcgsVisible1

Object is visible.

 mcgsDrawhandles2

Handles are displayed when object is selected.

 mcgsAllowselect256

Object can be selected (handles visible).

 mcgsAllowmove512

Object can be moved.

 mcgsAllowresize1024

Object can be resized.

 mcgsAllowpropchange2048

Object properties can be changed.

 mcgsAllownotify4096

Notify McGraphOverlay clients when object changes..

 mcgsAllowdelete8192

Object can be deleted.

 mcgsBeingDestroyed524288

Set during the EditClear, ObjectAboutToBeDeleted, ObjectAboutToBeDestroyed notifies. Cannot be set by the user.

 mcgsLabelTopleft1048576

Object has a top left label attached.

 mcgsLabelTopright2097152

Object has a top right label attached.

 mcgsLabelBtmleft4194304

Object has a bottom left label attached.

 mcgsLabelBtmright8388608

Object has a bottom right label attached.

 mcgsLabelCenter16777216

Object has a bottom center label attached.

 mcgsLabelLinebgn33554432

Display the label near the start of the object. For McGraphObjRect, this is the upper-left. For McGraphObjCircle, this is the left side of the circle.

 mcgsLabelLineend67108864

Display the label near the last point of the object. For McGraphObjRect, this is the lower-right. For McGraphObjCircle, this is the right side of the circle.

 mcgsLabelInside134217728

The label is positioned inside the specified position. For mcgsLabelCenter, mcgsLabelLinebgn and mcgsLabelLineend the position is switched to the opposite side of the specified position.

 mcgsLabelHidden268435456

Object's label should be hidden.

 mcgsNoBits0

No style bits

 mcgsLabelPositionBitsMask267386880

Label position bits mask

 mcgsLabelBitsMask535822336

Label position and hidden bits mask

 mcgsAllBitsMask-1

All style bits bits mask

The settings for value are:

ConstantValueDescription
 mcgsVisible1

Object is visible.

 mcgsDrawhandles2

Handles are displayed when object is selected.

 mcgsAllowselect256

Object can be selected (handles visible).

 mcgsAllowmove512

Object can be moved.

 mcgsAllowresize1024

Object can be resized.

 mcgsAllowpropchange2048

Object properties can be changed.

 mcgsAllownotify4096

Notify McGraphOverlay clients when object changes..

 mcgsAllowdelete8192

Object can be deleted.

 mcgsBeingDestroyed524288

Set during the EditClear, ObjectAboutToBeDeleted, ObjectAboutToBeDestroyed notifies. Cannot be set by the user.

 mcgsLabelTopleft1048576

Object has a top left label attached.

 mcgsLabelTopright2097152

Object has a top right label attached.

 mcgsLabelBtmleft4194304

Object has a bottom left label attached.

 mcgsLabelBtmright8388608

Object has a bottom right label attached.

 mcgsLabelCenter16777216

Object has a bottom center label attached.

 mcgsLabelLinebgn33554432

Display the label near the start of the object. For McGraphObjRect, this is the upper-left. For McGraphObjCircle, this is the left side of the circle.

 mcgsLabelLineend67108864

Display the label near the last point of the object. For McGraphObjRect, this is the lower-right. For McGraphObjCircle, this is the right side of the circle.

 mcgsLabelInside134217728

The label is positioned inside the specified position. For mcgsLabelCenter, mcgsLabelLinebgn and mcgsLabelLineend the position is switched to the opposite side of the specified position.

 mcgsLabelHidden268435456

Object's label should be hidden.

 mcgsNoBits0

No style bits

 mcgsLabelPositionBitsMask267386880

Label position bits mask

 mcgsLabelBitsMask535822336

Label position and hidden bits mask

 mcgsAllBitsMask-1

All style bits bits mask

Remarks

The Style describes visual and behavioral characteristics that apply to all objects regardless of their class.