Class ShapeStyles
Represents a collection of shape styles.
Inherited Members
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 SourceContainsShapeName(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. |
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.
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