Table of Contents

Method AddCustomProperty

Namespace
OpenCAD2D.SheetSets
Assembly
OpenCAD2D.Core.dll

AddCustomProperty(string, string, CadSheetSetPropertyFlags)

Adds a custom property as Add Custom Property does (D10). The name must not be empty, must not hold a dot or a double quote (a field could not carry it) and must not be one of the set's properties already, letter case ignored. A property of the sheet set's own is held by the set alone. A property of every sheet is held by the set as its definition, with the default value, and given at that value to every sheet in the set, in subsets and out of them; a sheet made later takes it at the default.

public void AddCustomProperty(string name, string defaultValue, CadSheetSetPropertyFlags owner)

Parameters

name string

The name.

defaultValue string

The value, or the default value of a sheet property; null or empty for none.

owner CadSheetSetPropertyFlags

Who holds it: Set or Sheet.

Exceptions

ArgumentNullException

Thrown when the name is null.

ArgumentException

Thrown when the name is empty, holds a dot or a double quote, or is a property's already, or the owner is neither Set nor Sheet.

InvalidOperationException

Thrown outside Change(Action<CadSheetSet>).