SftMask/OCX 6.5

SftMaskCaption.Position Property

Softel vdm, Inc.

Defines the caption's position.

Syntax       

Get

VB.NET

Pos = object.Position  As SftMaskPositionConstants

VB

Pos = object.Position  As SftMaskPositionConstants

C#.NET

SftMaskPositionConstants Pos = object.Position;

VC++

enum SftMaskPositionConstants Pos = object->Position;
enum SftMaskPositionConstants Pos = object->GetPosition();

C

HRESULT object->get_Position(enum SftMaskPositionConstants* Pos);

Delphi

Pos := object.Position  : TOleEnum;

Put

VB.NET

object.Position = Pos  As SftMaskPositionConstants

VB

object.Position = Pos  As SftMaskPositionConstants

C#.NET

SftMaskPositionConstants object.Position = Pos;

VC++

enum SftMaskPositionConstants object->Position = Pos;
void object->PutPosition(enum SftMaskPositionConstants Pos);

C

HRESULT object->put_Position(enum SftMaskPositionConstants Pos);

Delphi

object.Position := Pos  : TOleEnum;

object

A SftMaskCaption object.

Pos

Defines the position of the built-in caption.

Pos

Value

Description

positionSftMaskLeft

0

The caption is located to the left of the edit control.

positionSftMaskTop

1

The caption is located above the edit control.

positionSftMaskRight

2

The caption is located to the right of the edit control.

positionSftMaskBottom

3

The caption is located below the edit control.

Comments

The Position property defines the caption's position.

The size of the caption area is determined by the SizePercent and the AutoSize properties.

The caption area can be hidden by setting the Position property to positionSftMaskLeft or positionSftMaskRight and the Caption.SizePercent property to 0.

The caption area position and size are defined using a combination of the Caption.SizePercent or Caption.Width, Caption.Position and AutoSize properties. For a detailed description of the various combinations, please see the chapter Built-In Caption.


Feedback / comments / error reports for this topic
© 2000, 2008 - Softel vdm, Inc. - www.softelvdm.com