WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class XMLAttributesProvider

    Show / Hide Table of Contents

    Class XMLAttributesProvider

    Class that serves as the provider for XML attributes, which implements methods for obtaining the values and setting the values for the various properties.

    Inheritance
    System.Object
    ItemPropertiesProvider
    XMLAttributesProvider
    Implements
    IPropertyAccessProvider
    System.IDisposable
    Inherited Members
    ItemPropertiesProvider.view
    ItemPropertiesProvider.GetDataTableValue(Object, String)
    ItemPropertiesProvider.Dispose()
    ItemPropertiesProvider.OnBeginReflect()
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Data
    Assembly: Syncfusion.Data.WPF.dll
    Syntax
    public class XMLAttributesProvider : ItemPropertiesProvider, IPropertyAccessProvider, IDisposable

    Constructors

    XMLAttributesProvider(ICollectionViewAdv)

    Initializes a new instance of XMLAttributesProvider class.

    Declaration
    public XMLAttributesProvider(ICollectionViewAdv view)
    Parameters
    Type Name Description
    ICollectionViewAdv view

    The collection view of the SfDataGrid.

    Methods

    Dispose(Boolean)

    Disposes the unmanaged and optionally releases the managed resources used by the class.

    Declaration
    protected override void Dispose(bool isDisposing)
    Parameters
    Type Name Description
    System.Boolean isDisposing

    A boolean value indicating whether to dispose both managed and unmanged resources.

    Overrides
    ItemPropertiesProvider.Dispose(Boolean)

    GetDisplayValue(Object, String, Boolean)

    Get the display value of corresponding property name and record.

    Declaration
    public override object GetDisplayValue(object record, string propName, bool canUseBindingReflection)
    Parameters
    Type Name Description
    System.Object record

    The record for which the value is to be obtained.

    System.String propName

    The name of the property.

    System.Boolean canUseBindingReflection

    if true then use Binding reflection to get the display value.

    Returns
    Type Description
    System.Object

    Returns the display value based on property name and record.

    Overrides
    ItemPropertiesProvider.GetDisplayValue(Object, String, Boolean)

    GetFormattedValue(Object, String)

    Gets the formatted value for the given record and the property name.

    Declaration
    public override object GetFormattedValue(object record, string propName)
    Parameters
    Type Name Description
    System.Object record

    The record for which the value is to be obtained.

    System.String propName

    The name of the property.

    Returns
    Type Description
    System.Object

    The formatted value based on the given property and record.

    Overrides
    ItemPropertiesProvider.GetFormattedValue(Object, String)

    GetValue(Object, String)

    Gets the value for the given record and property.

    Declaration
    public override object GetValue(object record, string propName)
    Parameters
    Type Name Description
    System.Object record

    The record for which the value is to be obtained.

    System.String propName

    The name of the property.

    Returns
    Type Description
    System.Object

    The value for the given record and property.

    Overrides
    ItemPropertiesProvider.GetValue(Object, String)

    GetValue(Object, String, Boolean)

    Gets the value for the given record and property.

    Declaration
    public override object GetValue(object record, string propName, bool useBindingValue)
    Parameters
    Type Name Description
    System.Object record

    The record for which the value is to be obtained.

    System.String propName

    The name of the property.

    System.Boolean useBindingValue

    A boolean value indicating whether to use the binding value.

    Returns
    Type Description
    System.Object

    The value for the given record and property.

    Overrides
    ItemPropertiesProvider.GetValue(Object, String, Boolean)

    SetValue(Object, String, Object)

    Sets the value for the given record and property name.

    Declaration
    public override bool SetValue(object record, string propName, object value)
    Parameters
    Type Name Description
    System.Object record

    The record for which the value is to be set.

    System.String propName

    The name of the property.

    System.Object value

    The value to be set.

    Returns
    Type Description
    System.Boolean

    A boolean value indicating whether the value is set.

    Overrides
    ItemPropertiesProvider.SetValue(Object, String, Object)

    SetValue(Object, String, Object, Boolean)

    Sets the value for the given record and property.

    Declaration
    public override bool SetValue(object record, string propName, object value, bool useBindingValue)
    Parameters
    Type Name Description
    System.Object record

    The record for which the value is to be set.

    System.String propName

    The name of the property.

    System.Object value

    The value to be set.

    System.Boolean useBindingValue

    A boolean value indicating whether to use the binding value.

    Returns
    Type Description
    System.Boolean

    A boolean value indicating whether the value is set.

    Overrides
    ItemPropertiesProvider.SetValue(Object, String, Object, Boolean)

    Implements

    IPropertyAccessProvider
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved