Class BlockRecord
Represent the record of a block in the tables section.
Implements
Inherited Members
Namespace: netDxf.Blocks
Assembly: CADability.dll
Syntax
public class BlockRecord : DxfObject, IHasXData
Properties
| Improve this Doc View SourceAllowExploding
Gets or sets if the block can be exploded.
Declaration
public bool AllowExploding { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Remarks
This property is only compatible with DXF version AutoCad2007 and upwards.
DefaultUnits
Gets or sets the default block units.
Declaration
public static DrawingUnits DefaultUnits { get; set; }
Property Value
| Type | Description |
|---|---|
| DrawingUnits |
Remarks
These are the units that all new blocks will use as default.
IsForInternalUseOnly
Gets if the block record is for internal use only.
Declaration
public bool IsForInternalUseOnly { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Remarks
All blocks which name starts with "*" are for internal use and should not be modified.
Layout
Gets the associated Layout.
Declaration
public Layout Layout { get; }
Property Value
| Type | Description |
|---|---|
| Layout |
Name
Gets the name of the block record.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Remarks
Block record names are case insensitive.
The block which name starts with "*" are for internal purpose only.
Owner
Gets the owner of the actual DXF object.
Declaration
public BlockRecords Owner { get; }
Property Value
| Type | Description |
|---|---|
| BlockRecords |
ScaleUniformly
Gets or sets if the block must be scaled uniformly.
Declaration
public bool ScaleUniformly { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Remarks
This property is only compatible with DXF version AutoCad2007 and upwards.
Units
Gets or sets the block insertion units.
Declaration
public DrawingUnits Units { get; set; }
Property Value
| Type | Description |
|---|---|
| DrawingUnits |
XData
Gets the block record XDataDictionary.
Declaration
public XDataDictionary XData { get; }
Property Value
| Type | Description |
|---|---|
| XDataDictionary |
Methods
| Improve this Doc View SourceOnXDataAddAppRegEvent(ApplicationRegistry)
Declaration
protected virtual void OnXDataAddAppRegEvent(ApplicationRegistry item)
Parameters
| Type | Name | Description |
|---|---|---|
| ApplicationRegistry | item |
OnXDataRemoveAppRegEvent(ApplicationRegistry)
Declaration
protected virtual void OnXDataRemoveAppRegEvent(ApplicationRegistry item)
Parameters
| Type | Name | Description |
|---|---|---|
| ApplicationRegistry | item |
ToString()
Converts the value of this instance to its equivalent string representation.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | The string representation. |
Overrides
Events
| Improve this Doc View SourceXDataAddAppReg
Declaration
public event XDataAddAppRegEventHandler XDataAddAppReg
Event Type
| Type | Description |
|---|---|
| XDataAddAppRegEventHandler |
XDataRemoveAppReg
Declaration
public event XDataRemoveAppRegEventHandler XDataRemoveAppReg
Event Type
| Type | Description |
|---|---|
| XDataRemoveAppRegEventHandler |