Convenience routine to get a Boolean-valued attribute.
Namespace:
Imsl.Chart2D
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public virtual bool GetBooleanAttribute( string name, bool defaultValue ) |
Visual Basic (Declaration) |
---|
Public Overridable Function GetBooleanAttribute ( _ name As String, _ defaultValue As Boolean _ ) As Boolean |
Visual C++ |
---|
public: virtual bool GetBooleanAttribute( String^ name, bool defaultValue ) |
Parameters
- name
- Type: System..::.String
A String which contains the name of the attribute to be assessed.
- defaultValue
- Type: System..::.Boolean
A bool specifying the default value of the attribute.
Return Value
A bool containing the attribute value.
Remarks
The value of an attribute is returned if it is defined and its value
is of type bool. Otherwise the defaultValue is
returned.