API Help
Eplan.EplApi.DataModel Namespace / ContextPropertyPlacement Class / CreateFromPageProperties Method
Page on which object will be inserted.
Location in which object will be inserted.
Page property which will be displayed.
Example

In This Topic
    CreateFromPageProperties Method
    In This Topic
    Creates and insert into page ContextPropertyPlacement which displays page property.
    Syntax
    public void CreateFromPageProperties( 
       Page oPage,
       PointD oLocation,
       AnyPropertyId oAnyPropertyId
    )
    public:
    void CreateFromPageProperties( 
       Page^ oPage,
       PointD oLocation,
       AnyPropertyId^ oAnyPropertyId
    ) 

    Parameters

    oPage
    Page on which object will be inserted.
    oLocation
    Location in which object will be inserted.
    oAnyPropertyId
    Page property which will be displayed.
    Exceptions
    ExceptionDescription
    Throw when DataModel object has already been created and is created again.
    Thrown when one of parameters is null. Check exception message for more details.
    Throw when internally used handle is not valid.
    Thrown when ContextPropertyPlacement object cannot be created.
    Thrown when internal problem occurs. Check exception message for more details.
    Example
    ContextPropertyPlacement oContextPropertyPlacement = new ContextPropertyPlacement();
    oContextPropertyPlacement.CreateFromPageProperties(oNewPage, new PointD(100.0, 100.0), oNewPage.Properties["EPLAN.Page.UserSupplementaryField1"].Id);
    
    
    See Also