GetObjectByHandle Method (IDocument)

GetObjectByHandle Method (IDocument) | Send Feedback
See Also

DispObj[out]
  Object

Handle
  Handle of the object to get

ObjType[out]
  Type of object to get as defined in dsObjectType_e

Gets an object by its handle.

# Syntax

Visual Basic |
--- | ---
    Function GetObjectByHandle( _
       ByVal Handle As System.String, _
       ByRef ObjType As dsObjectType_e _
    ) As System.Object

C# |
--- | ---
    System.object GetObjectByHandle(
       System.string Handle,
       out dsObjectType_e ObjType
    )

JavaScript |
--- | ---
    GetObjectByHandle(
       Handle : String
    ) : {
       ObjType : String,
       DispObj : dsObject
    }

COM native C++ |
--- | ---
    HRESULT GetObjectByHandle(
       BSTR Handle,
       dsObjectType_e* ObjType,
       IDispatch** DispObj
    )

C++ |
--- | ---
    DSRESULT GetObjectByHandle(
       const dsString& Handle,
       dsObjectType_e* ObjType,
       dsObject** DispObj
    )

#### Parameters

Handle
  Handle of the object to get
ObjType[out]
  Type of object to get as defined in dsObjectType_e
DispObj[out] or Return Value
  Object

# See Also

####

IDocument Interface
IDocument Members

# Availability

DraftSight V1R1.3