IndependentAndDependentColumnsGetPropertyValueOfColumn(DataColumn, String) Method |
Gets the value of a specified property for a given data column, if defined, or returns an empty value if the
property is not set.
Namespace: Altaxo.DataAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic static AltaxoVariant GetPropertyValueOfColumn(
DataColumn ycol,
string propertyName
)
Parameters
- ycol DataColumn
- The data column for which to retrieve the property value. Can be null.
- propertyName String
- The name of the property to retrieve. Cannot be null or empty.
Return Value
AltaxoVariantAn AltaxoVariant containing the value of the specified property for the given column, or an empty AltaxoVariant
if the property is not set or the parameters are invalid.
RemarksThe method first attempts to retrieve the property value from a property column associated
with the specified data column. If not found, it searches for the property in the parent data table's property
hierarchy. If the property is not defined in either location, an empty AltaxoVariant is returned.
See Also