FilledRegionType.IsValidForegroundPatternId
Method
Description:
Check if the id is valid for a foreground pattern
Check if the id is valid for a foreground pattern
Remarks:
In a family the FillPatternElement must be a 'Drafting' pattern.
In a family the FillPatternElement must be a 'Drafting' pattern.
Parameters
| Parameter | Type | Description |
|---|---|---|
| patternId | ElementId | Element id of the FillPatternElement |
Return Value
| Type | Description |
|---|---|
| Boolean | False if in a family, and the id is a FillPatternElement that targets 'Drafting'. True otherwise. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |