#AdHocColor
##Properties
| Datatype | Property name | Property description | Default Value |
|---|---|---|---|
| Color | Color | Gets or sets the current value of the color. | Color [Empty] |
| Color | DefaultValue | Gets the default value that the color was instantiated with. | Color [Empty] |
| Boolean | Modified | Determines whether or not the color has been modified since it was instantiated. | False |
| String | Name | The name of the color. | String.Empty |
| ColorRef | SavedValue | The color and its associated properties that were registered to the associated report. | null |
##Methods
###Equals(System.Object) Determines whether the specified System.Object is equal to the current System.Object.
Parameters:
- System.Object obj - The System.Object to compare with the current System.Object.
Returns:
true if the specified System.Object is equal to the current System.Object; otherwise, false.
###GetHashCode() Serves as a hash function for a particular type.
Returns:
A hash code for the current System.Object.
###GetType() Gets the System.Type of the current instance.
Returns:
The System.Type instance that represents the exact runtime type of the current instance.
###LoadFromRequest(System.String) Constructs a color from a web request using the specified parameter name where the value passed in the request parameter is a valid GDI+ drawing color.
Parameters:
- System.String parameterName - The name of the parameter being passed through the web request containing the color.
###Read(System.Xml.XmlReader) Reads the color from the specified System.Xml.XmlReader based on the name of the color.
Parameters:
- System.Xml.XmlReader reader - The XML stream reader that will be used to read the report definition.
###ResetToDefault() Resets the color to its default value.
###ToString() Returns a System.String that represents the current System.Object.
Returns:
A System.String that represents the current System.Object.
###Write(System.Xml.XmlWriter,System.Boolean) Writes the color to the specified System.Xml.XmlWriter.
Parameters:
- System.Xml.XmlWriter writer - The XML stream that will be used to write the report definition.
- System.Boolean writeNotModified - Determines whether the color will be written to the XML file when changes were not made to the default color.
