Visit Gigasoft's Web Site
 ProEssentials v9 Help

LegendAnnotationType

Scope

Pego, Pesgo, Pe3do, Pepso

Type

Property Array of type Int32

Default

empty

.NET

PeLegend.AnnotationType

Ocx|Vcl

LegendAnnotationType

DLL

PEP_naLEGENDANNOTATIONTYPE

 

Purpose

This property array defines the graphic symbols used to legend annotations. The following constants are used with this property array.

 

.NET Gigasoft.Enums.

ActiveX (constants start with LAT_ )

 

LegendAnnotationType.

DLL Constants

Description

NoSymbol

PEGAT_NOSYMBOL(0)

No Symbol, Text Only

Plus

PEGAT_PLUS(1)

Plus

Cross

PEGAT_CROSS(2)

Cross

Dot

PEGAT_DOT(3)

Circle

DotSolid

PEGAT_DOTSOLID(4)

Solid Circle

Square

PEGAT_SQUARE(5)

Square

SquareSolid

PEGAT_SQUARESOLID(6)

Solid Square

Diamond

PEGAT_DIAMOND(7)

Diamond

DiamondSolid

PEGAT_DIAMONDSOLID(8)

Solid Diamond

UpTriangle

PEGAT_UPTRIANGLE(9)

Upward Triangle

UpTriangleSolid

PEGAT_UPTRIANGLESOLID(10)

Solid Upward Triangle

DownTriangle

PEGAT_DOWNTRIANGLE(11)

Downward Triangle

DownTriangleSolid

PEGAT_DOWNTRIANGLESOLID(12)

Solid Downward Triangle

SmallPlus

PEGAT_SMALLPLUS(13)

Small Plus

SmallCross

PEGAT_SMALLCROSS(14)

Small Cross

SmallDot

PEGAT_SMALLDOT(15)

Small Circle

SmallDotSolid

PEGAT_SMALLDOTSOLID(16)

Small Solid Circle

SmallSquare

PEGAT_SMALLSQUARE(17)

Small Square

SmallSquareSolid

PEGAT_SMALLSQUARESOLID(18)

Small Solid Square

SmallDiamond

PEGAT_SMALLDIAMOND(19)

Small Diamond

SmallDiamondSolid

PEGAT_SMALLDIAMONDSOLID(20)

Small Solid Diamond

SmallUpTriangle

PEGAT_SMALLUPTRIANGLE(21)

Small Upward Triangle

SmallUpTriangleSolid

PEGAT_SMALLUPTRIANGLESOLID(22)

Small Solid Upward Triangle

SmallDownTriangle

PEGAT_SMALLDOWNTRIANGLE(23)

Small Downward Triangle

SmallDownTriangleSolid

PEGAT_SMALLDOWNTRIANGLESOLID(24)

Small Solid Downward Triangle

LargePlus

PEGAT_LARGEPLUS(25)

Large Plus

LargeCross

PEGAT_LARGECROSS(26)

Large Cross

LargeDot

PEGAT_LARGEDOT(27)

Large Circle

LargeDotSolid

PEGAT_LARGEDOTSOLID(28)

Large Solid Circle

LargeSquare

PEGAT_LARGESQUARE(29)

Large Square

LargeSquareSolid

PEGAT_LARGESQUARESOLID(30)

Large Solid Square

LargeDiamond

PEGAT_LARGEDIAMOND(31)

Large Diamond

LargeDiamondSolid

PEGAT_LARGEDIAMONDSOLID(32)

Large Solid Diamond

LargeUpTriangle

PEGAT_LARGEUPTRIANGLE(33)

Large Upward Triangle

LargeUpTriangleSolid

PEGAT_LARGEUPTRIANGLESOLID(34)

Large Solid Upward Triangle

LargeDownTriangle

PEGAT_LARGEDOWNTRIANGLE(35)

Large Downward Triangle

LargeDownTriangleSolid

PEGAT_LARGEDOWNTRIANGLESOLID(36)

Large Solid Downward Triangle

Pointer

PEGAT_POINTER(37)

Pointer for text annotations

ThinSolidLine

PEGAT_THINSOLIDLINE(38)

Thin Solid Line

DashLine

PEGAT_DASHLINE(39)

Dash Line

DotLine

PEGAT_DOTLINE(40)

Dot Line

DashDotLine

PEGAT_DASHDOTLINE(41)

Dash Dot Line

DashDotDotLine

PEGAT_DASHDOTDOTLINE(42)

Dash Dot Dot Line

MediumSolidLine

PEGAT_MEDIUMSOLIDLINE(43)

Medium Solid Line

ThickSolidLine

PEGAT_THICKSOLIDLINE(44)

Thick Solid Line

Dash

PEGAT_DASH(72)

Dash

Pixel

PEGAT_PIXEL(73)

Pixel

MediumThinSolid

PEGAT_MEDIUMTHINSOLID(87)

Medium Thin Solid

MediumThickSolid

PEGAT_MEDIUMTHICKSOLID(88)

Medium Thick Solid

ExtraThickSolid

PEGAT_EXTRATHICKSOLID(89)

Extra Thick Solid

ExtraThinSolid

PEGAT_EXTRATHINSOLID(90)

Extra Thin Solid

ArrowN

PEGAT_ARROW_N(92)

Arrow North

ArrowNE

PEGAT_ARROW_NE(93)

Arrow North East

ArrowE

PEGAT_ARROW_E(94)

Arrow East

ArrowSE

PEGAT_ARROW_SE(95)

Arrow South East

ArrowS

PEGAT_ARROW_S(96)

Arrow South

ArrowSW

PEGAT_ARROW_SW(97)

Arrow South West

ArrowW

PEGAT_ARROW_W(98)

Arrow West

ArrowNW

PEGAT_ARROW_NW(99)

Arrow North West

MediumThinDash

PEGAT_MEDIUMTHINDASH(105)

Medium Thin Dash

MediumThinDot

PEGAT_MEDIUMTHINDOT(106)

Medium Thin Dot

MediumThinDashDot

PEGAT_MEDIUMTHINDASHDOT(107)

Medium Thin Dash Dot

MediumThinDashDotDot

PEGAT_MEDIUMTHINDASHDOTDOT(108)

Medium Thin Dash Dot Dot

MediumDash

PEGAT_MEDIUMDASH(109)

Medium Dash

MediumDot

PEGAT_MEDIUMDOT(110)

Medium Dot

MediumDashDot

PEGAT_MEDIUMDASHDOT(111)

Medium Dash Dot

MediumDashDotDot

PEGAT_MEDIUMDASHDOTDOT(112)

Medium Dash Dot Dot

MediumThickDash

PEGAT_MEDIUMTHICKDASH(113)

Medium Thick Dash

MediumThickDot

PEGAT_MEDIUMTHICKDOT(114)

Medium Thick Dot

MediumThickDashDot

PEGAT_MEDIUMTHICKDASHDOT(115)

Medium Thick Dash Dot

MediumThickDashDotDot

PEGAT_MEDIUMTHICKDASHDOTDOT(116)

Medium Thick Dash Dot Dot

ThickDash

PEGAT_THICKDASH(117)

Thick Dash

ThickDot

PEGAT_THICKDOT(118)

Thick Dot

ThickDashDot

PEGAT_THICKDASHDOT(119)

Thick Dash Dot

ThickDashDotDot

PEGAT_THICKDASHDOTDOT(120)

Thick Dash Dot Dot

ExtraThickDash

PEGAT_EXTRATHICKDASH(121)

Extra Thick Dash

ExtraThickDot

PEGAT_EXTRATHICKDOT(122)

Extra Thick Dot

ExtaThickDashDot

PEGAT_EXTRATHICKDASHDOT(123)

Extra Thick Dash Dot

ExtraThickDashDotDot

PEGAT_EXTRATHICKDASHDOTDOT(124)

Extra Thick Dash Dot Dot

HatchHorizontal

PEGAT_HATCH_HORIZONTAL(157)

Hatch Horizontal

HatchVertical

PEGAT_HATCH_VERTICAL(158)

Hatch Vertical

HatchFDiagonal

PEGAT_HATCH_FDIAGONAL(159)

Hatch Forward Diagonal

HatchBDiagonal

PEGAT_HATCH_BDIAGONAL(160)

Hatch Backward Diagonal

HatchCross

PEGAT_HATCH_CROSS(161)

Hatch Cross

HatchDiagCross

PEGAT_HATCH_DIAGCROSS(162)

Hatch Diagonal Cross

 

Comments

PeLegend.AnnotationType members of Pego.PeLegend, Pesgo.PeLegend, Pe3do.PeLegend, Pepso.PeLegend

 

Legend annotations are only shown when ShowAnnotations is equal to TRUE.

 

See Also, LegendAnnotationText, and LegendAnnotationColor. If you are implementing multiple y axes, also see LegendAnnotationAxis.

 

See Also: HorzLineAnnotationType, VertLineAnnotationType, GraphAnnotationType

 

.NET Example

The following example shows how to add two legends that represent annotations.

Pego1.PeLegend.AnnotationType(0) = PEGAT_DASHLINE

Pego1.PeLegend.AnnotationText(0) = "Upper Boundary"

Pego1.PeLegend.AnnotationColor(0) = Color.Red

 

Pego1.PeLegend.AnnotationType(1) = PEGAT_DOTLINE

Pego1.PeLegend.AnnotationText(1) = "Lower Boundary"

Pego1.PeLegend.AnnotationColor(1) = Color.Blue

Pego1.PeAnnotation.Show = True

 

OCX Example

The following example shows how to add two legends that represent annotations.

Pego1.LegendAnnotationType(0) = PEGAT_DASHLINE

Pego1.LegendAnnotationText(0) = "Upper Boundary"

Pego1.LegendAnnotationColor(0) = QBColor(4)

 

Pego1.LegendAnnotationType(1) = PEGAT_DOTLINE

Pego1.LegendAnnotationText(1) = "Lower Boundary"

Pego1.LegendAnnotationColor(1) = QBColor(5)

Pego1.ShowAnnotations = True

 

VCL Example

The following example shows how to add two legends that represent annotations.

PEGraph1.LegendAnnotationType[0] := PEGAT_DASHLINE;

PEGraph1.LegendAnnotationText[0] := 'Upper Boundary';

PEGraph1.LegendAnnotationColor[0] := clRed;

 

PEGraph1.LegendAnnotationType[1] := PEGAT_DOTLINE;

PEGraph1.LegendAnnotationText[1] := 'Lower Boundary';

PEGraph1.LegendAnnotationColor[1] := clBlue;

PEGraph1.ShowAnnotations := true;

 

C / C++ Example

The following example shows how to add two legends that represent annotations.

int nTypes[2];

int dwColors[2];

TCHAR szText[] = TEXT("Upper Boundary\tLower Boundary\t")

nTypes(0) = PEGAT_DASHLINE;

nTypes(1) = PEGAT_DOTLINE;

dwColors(0) = RGB(255,0,0);

dwColors(1) = RGB(0,255,0);

PEvset (hWndPE, PEP_naLEGENDANNOTATIONTYPE, nTypes, 2);

PEvset (hWndPE, PEP_szaLEGENDANNOTATIONTEXT, szText, 2);

PEvset (hWndPE, PEP_dwaLEGENDANNOTATIONCOLOR, dwColors, 2);

PEnset (hWndPE, PEP_bSHOWANNOTATIONS, TRUE);