Show / Hide Table of Contents

Class ShapeStyles

Represents a collection of shape styles.

Inheritance
System.Object
DxfObject
TableObjects<ShapeStyle>
ShapeStyles
Implements
System.Collections.Generic.IEnumerable<ShapeStyle>
System.Collections.IEnumerable
Inherited Members
TableObjects<ShapeStyle>.list
TableObjects<ShapeStyle>.references
TableObjects<ShapeStyle>.Item[String]
TableObjects<ShapeStyle>.Items
TableObjects<ShapeStyle>.Names
TableObjects<ShapeStyle>.Count
TableObjects<ShapeStyle>.MaxCapacity
TableObjects<ShapeStyle>.Owner
TableObjects<ShapeStyle>.GetReferences(String)
TableObjects<ShapeStyle>.GetReferences(ShapeStyle)
TableObjects<ShapeStyle>.Contains(String)
TableObjects<ShapeStyle>.Contains(ShapeStyle)
TableObjects<ShapeStyle>.TryGetValue(String, ShapeStyle)
TableObjects<ShapeStyle>.Add(ShapeStyle)
TableObjects<ShapeStyle>.Clear()
TableObjects<ShapeStyle>.GetEnumerator()
TableObjects<ShapeStyle>.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 class ShapeStyles : TableObjects<ShapeStyle>, IEnumerable<ShapeStyle>, IEnumerable

Methods

| Improve this Doc View Source

ContainsShapeName(String)

Looks for a shape style that contains a shape with the specified name.

Declaration
public ShapeStyle ContainsShapeName(string name)
Parameters
Type Name Description
System.String name

Shape name.

Returns
Type Description
ShapeStyle

The shape style that contains a shape with the specified name, null otherwise.

| Improve this Doc View Source

Remove(ShapeStyle)

Removes a shape style.

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

ShapeStyle to remove from the document.

Returns
Type Description
System.Boolean

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

Overrides
netDxf.Collections.TableObjects<netDxf.Tables.ShapeStyle>.Remove(netDxf.Tables.ShapeStyle)
Remarks

Reserved shape styles or any other referenced by objects cannot be removed.

| Improve this Doc View Source

Remove(String)

Removes a shape style.

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

ShapeStyle name to remove from the document.

Returns
Type Description
System.Boolean

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

Overrides
netDxf.Collections.TableObjects<netDxf.Tables.ShapeStyle>.Remove(System.String)
Remarks

Reserved shape styles 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