Eplan Platform API
Eplan.EplApi.DataModel.Graphics Namespace / Comment Class / CreateTransient Method / CreateTransient(Project,String,Double) Method
The project in which the Comment will be located.
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 override void CreateTransient( 
       Project project,
       string contents,
       double textHeight
    )
    public:
    void CreateTransient( 
       Project^ project,
       String^ contents,
       double textHeight
    ) override 

    Parameters

    project
    The project in which the Comment will be located.
    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