API Help
Eplan.EplApi.DataModel.Graphics Namespace / Text Class / CreateTransient(Project,String,Double) Method
Eplan.EplApi.DataModel.Project the Text will be assign to.
System.String containing text to display.
Height of the Text.

In This Topic
    CreateTransient(Project,String,Double) Method
    In This Topic
    Creates transient and not placed Text object.
    Syntax
    public void CreateTransient( 
       Project oProject,
       string contents,
       double textHeight
    )
    public:
    void CreateTransient( 
       Project^ oProject,
       String^ contents,
       double textHeight
    ) 

    Parameters

    oProject
    Eplan.EplApi.DataModel.Project the Text will be assign to.
    contents
    System.String containing text to display.
    textHeight
    Height of the Text.
    Exceptions
    ExceptionDescription
    Thrown when oProject is null.
    Thrown when contents is null.
    Thrown when the Text cannot be created.
    Thrown when the Text has already been created.
    Thrown when function is invoked with object of higher class.
    Remarks
    After creation object is not stored in project database. It can be inserted into database after execution of Eplan.EplApi.DataModel.Placement.CopyTo.
    See Also