AGI STK Graphics 11Send comments on this topic.
InitializeWithWidthHeightUnits Method (IAgStkGraphicsTextOverlayFactory)
See Also 
Font
The Graphics Font that defines how text is drawn.
Width
The initial width of the overlay.
WidthUnit
The Screen Overlay Unit defining the interpretation of the _Width.
Height
The initial width of the overlay.
HeightUnit
The Screen Overlay Unit defining the interpretation of the _Height.
Windows






Windows & Linux

Description

Initializes the overlay with the specified position and size.

Syntax

[Visual Basic .NET]
Public Function InitializeWithWidthHeightUnits( _
   ByVal Font As IAgStkGraphicsGraphicsFont, _
   ByVal Width As Double, _
   ByVal WidthUnit As AgEStkGraphicsScreenOverlayUnit, _
   ByVal Height As Double, _
   ByVal HeightUnit As AgEStkGraphicsScreenOverlayUnit _
) As IAgStkGraphicsTextOverlay
[C#]
public IAgStkGraphicsTextOverlay InitializeWithWidthHeightUnits(
   IAgStkGraphicsGraphicsFont Font,
   double Width,
   AgEStkGraphicsScreenOverlayUnit WidthUnit,
   double Height,
   AgEStkGraphicsScreenOverlayUnit HeightUnit
);
[Managed C++]
public: IAgStkGraphicsTextOverlay^ InitializeWithWidthHeightUnits(
   IAgStkGraphicsGraphicsFont ^ Font,
   double Width,
   AgEStkGraphicsScreenOverlayUnit WidthUnit,
   double Height,
   AgEStkGraphicsScreenOverlayUnit HeightUnit
);
[Java]
public IAgStkGraphicsTextOverlay initializeWithWidthHeightUnits(
   IAgStkGraphicsGraphicsFont Font,
   double Width,
   AgEStkGraphicsScreenOverlayUnit WidthUnit,
   double Height,
   AgEStkGraphicsScreenOverlayUnit HeightUnit
);
[Unmanaged C++]
public: HRESULT InitializeWithWidthHeightUnits(
   IAgStkGraphicsGraphicsFont * Font,
   double Width,
   AgEStkGraphicsScreenOverlayUnit WidthUnit,
   double Height,
   AgEStkGraphicsScreenOverlayUnit HeightUnit,
   IAgStkGraphicsTextOverlay ** ReturnValue
);

Parameters

Font
The Graphics Font that defines how text is drawn.
Width
The initial width of the overlay.
WidthUnit
MemberValueDescription
eStkGraphicsScreenOverlayUnitPixels0The value is specified in pixels.
eStkGraphicsScreenOverlayUnitFraction1The value is specified as a fraction of the overlay's parent, where 0.0 is 0 and 1.0 is 100.
The Screen Overlay Unit defining the interpretation of the _Width.
Height
The initial width of the overlay.
HeightUnit
MemberValueDescription
eStkGraphicsScreenOverlayUnitPixels0The value is specified in pixels.
eStkGraphicsScreenOverlayUnitFraction1The value is specified as a fraction of the overlay's parent, where 0.0 is 0 and 1.0 is 100.
The Screen Overlay Unit defining the interpretation of the _Height.

See Also

© 2018 Analytical Graphics, Inc. All Rights Reserved.