Class ShadingRegion
Shading region
Namespace: Scripting
Syntax
public class ShadingRegion
Constructors
ShadingRegion()
Creates an instance of the ShadingRegion class.
Declaration
public ShadingRegion()
Properties
Bounds
Gets the bounding box of this shading region.
Declaration
public Rect Bounds { get; }
Property Value
Type | Description |
---|---|
Rect |
Height
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Name
Name of the shading region
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Points
Gets the points that define the boundary of the shading region.
Declaration
public IEnumerable<IReadable2DLocation> Points { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IReadable2DLocation> |
ShadingBoundaryType
Declaration
public ShadingBoundaryType ShadingBoundaryType { get; set; }
Property Value
Type | Description |
---|---|
ShadingBoundaryType |
Methods
Equals(ShadingRegion)
Tests a ShadingRegion against this current ShadingRegion for equality.
Declaration
public bool Equals(ShadingRegion val)
Parameters
Type | Name | Description |
---|---|---|
ShadingRegion | val |
Returns
Type | Description |
---|---|
System.Boolean | True if equal otherwise false is returned. |
Equals(Object)
Tests a System.Object against this current ShadingRegion for equality.
Declaration
public override bool Equals(object toCompare)
Parameters
Type | Name | Description |
---|---|---|
System.Object | toCompare |
Returns
Type | Description |
---|---|
System.Boolean | True if object is equal otherwise false is returned. |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Gets the hash code for this object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code for this object. |
Overrides
System.Object.GetHashCode()
Operators
Equality(ShadingRegion, ShadingRegion)
Tests a ShadingRegion against this current ShadingRegion for equality.
Declaration
public static bool operator ==(ShadingRegion a, ShadingRegion b)
Parameters
Type | Name | Description |
---|---|---|
ShadingRegion | a | |
ShadingRegion | b |
Returns
Type | Description |
---|---|
System.Boolean | True if equal otherwise false is returned. |
Inequality(ShadingRegion, ShadingRegion)
Tests a ShadingRegion against this current ShadingRegion for inequality.
Declaration
public static bool operator !=(ShadingRegion a, ShadingRegion b)
Parameters
Type | Name | Description |
---|---|---|
ShadingRegion | a | |
ShadingRegion | b |
Returns
Type | Description |
---|---|
System.Boolean | True if not equal otherwise false is returned. |