DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Expand ModelsModels
Expand DG Kernel ComponentsDG Kernel Components
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Expand General GeometryGeneral Geometry
Expand ModelModel
Expand ViewView
Collapse General ComputingGeneral Computing
Expand Samples and TutorialsSamples and Tutorials
Expand GraphicsGraphics
Expand Math ObjectsMath Objects
Expand DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation LinksHome Page > API Reference > General Computing > IText 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.

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.