Harness proD API Help
EPLAN.Harness.API.Projects.Documents Namespace / Document Class / HasFocus Property
In This Topic
    HasFocus Property
    In This Topic
    Does this document have focus in the UI?
    Syntax
    public bool HasFocus {get;}
    Exceptions
    ExceptionDescription
    The object is in invalid state. Obtain a new one.

    Internal error of HpD or HpD API.

    IMPORTANT: Throwing this exception changes HpD Api's state to Failed.

    Api is not in an initialized state. You can get current state from EPLAN.Harness.API.HpdApi.Status property. If API is uninitialized, you can initialize it by calling EPLAN.Harness.API.HpdApi.Init method. If API is in failed state, you can not resurrect it.
    Remarks
    If this document has no HPD UI, returns an null.
    See Also