HasBlockDefinition Method (IDocument)

HasBlockDefinition Method (IDocument) | Send Feedback
See Also

HasBlockDef[out]
  True if BlockName is inserted in the document, false if not

BlockName
  Name of the Block definition

Gets whether the specified Block definition is inserted in the document.

# Syntax

Visual Basic |
--- | ---
    Function HasBlockDefinition( _
       ByVal BlockName As System.String _
    ) As System.Boolean

C# |
--- | ---
    System.bool HasBlockDefinition(
       System.string BlockName
    )

JavaScript |
--- | ---
    HasBlockDefinition(
       BlockName : String
    ) : Boolean

COM native C++ |
--- | ---
    HRESULT HasBlockDefinition(
       BSTR BlockName,
       VARIANT_BOOL* HasBlockDef
    )

C++ |
--- | ---
    DSRESULT HasBlockDefinition(
       const dsString& BlockName,
       bool* HasBlockDef
    )

#### Parameters

BlockName
  Name of the Block definition
HasBlockDef[out] or Return Value
  True if BlockName is inserted in the document, false if not

# See Also

####

IDocument Interface
IDocument Members
IDocument::CreateBlockDefinition Method ()
IDocument::GetBlockDefinition Method ()
IDocument::GetBlockDefinitions Method ()

# Availability

DraftSight V1R5.0