Show / Hide Table of Contents

Class BlockRecords

Represents a collection of blocks.

Inheritance
System.Object
DxfObject
TableObjects<Block>
BlockRecords
Implements
System.Collections.Generic.IEnumerable<Block>
System.Collections.IEnumerable
Inherited Members
TableObjects<Block>.list
TableObjects<Block>.references
TableObjects<Block>.Item[String]
TableObjects<Block>.Items
TableObjects<Block>.Names
TableObjects<Block>.Count
TableObjects<Block>.MaxCapacity
TableObjects<Block>.Owner
TableObjects<Block>.GetReferences(String)
TableObjects<Block>.GetReferences(Block)
TableObjects<Block>.Contains(String)
TableObjects<Block>.Contains(Block)
TableObjects<Block>.TryGetValue(String, Block)
TableObjects<Block>.Add(Block)
TableObjects<Block>.Clear()
TableObjects<Block>.GetEnumerator()
TableObjects<Block>.IEnumerable.GetEnumerator()
DxfObject.CodeName
DxfObject.Handle
DxfObject.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: netDxf.Collections
Assembly: CADability.dll
Syntax
public sealed class BlockRecords : TableObjects<Block>, IEnumerable<Block>, IEnumerable

Methods

| Improve this Doc View Source

Remove(Block)

Removes a block.

Declaration
public override bool Remove(Block item)
Parameters
Type Name Description
Block item

Block to remove from the document.

Returns
Type Description
System.Boolean

True if the block has been successfully removed, or false otherwise.

Overrides
netDxf.Collections.TableObjects<netDxf.Blocks.Block>.Remove(netDxf.Blocks.Block)
Remarks

Reserved blocks or any other referenced by objects cannot be removed.

| Improve this Doc View Source

Remove(String)

Removes a block.

Declaration
public override bool Remove(string name)
Parameters
Type Name Description
System.String name

Block name to remove from the document.

Returns
Type Description
System.Boolean

True if the block has been successfully removed, or false otherwise.

Overrides
netDxf.Collections.TableObjects<netDxf.Blocks.Block>.Remove(System.String)
Remarks

Reserved blocks or any other referenced by objects cannot be removed.

Implements

System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX