DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Collapse ModelsModels
Collapse DG Kernel ControlsDG Kernel Controls
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse ViewsViews
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Go to DGKC docs Search Documentation


IText Interface

SetText
GetText

In this release IText used to give access to 3D Labels. Further properties of 3D Labels can be accessed via IDIFont, IItem and ILocation queried from IText.

IText implemented by a top-level 3D Label can be obtained via:

Query path: DG Kernel >GetModel > IModel > IPropertyArray2 > GetProperty("Items") > IArray2 > GetAt > IText

IText implemented by a 3D Label attached to an object can be obtained via:

Query path: ISection > IPropertyArray2 > GetProperty("Items") > IArray2 > GetAt > IText, where ISection represents the object.

Implements also: IGeometry_DG, ILabel3D_KC.

See also Label Sample, Interface List


HRESULT SetText(char* text)

Parameters

text - [in] New value of the text string

Returns

S_OK in case of success.

Remarks:

The method sets the text string controlled by the interface.  


HRESULT GetText( BSTR *text )

Parameters

text  - [out] The returned text string

Returns

S_OK in case of success.

Remarks:

The method returns the text string controlled by the interface.