menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CloneablePropertyAttribute - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class CloneablePropertyAttribute

    Specifies whether a property should be cloned.

    Inheritance
    System.Object
    CloneablePropertyAttribute
    Namespace: Syncfusion.UI.Xaml.CellGrid.Styles
    Assembly: Syncfusion.SfCellGrid.UWP.dll
    Syntax
    public sealed class CloneablePropertyAttribute : Attribute

    Constructors

    CloneablePropertyAttribute(Boolean)

    Initializes a new instance of the CloneablePropertyAttribute class.

    Declaration
    public CloneablePropertyAttribute(bool cloneableProperty)
    Parameters
    Type Name Description
    System.Boolean cloneableProperty

    langword_csharp_True if a property should be should be cloned if the assigned object implements ICloneable; langword_csharp_False otherwise. The default is langword_csharp_True

    Fields

    Default

    The default setting for this attribute.

    Declaration
    public static readonly CloneablePropertyAttribute Default
    Field Value
    Type
    CloneablePropertyAttribute

    No

    Specifies that a property should never be cloned even if the assigned object implements ICloneable This static field is Read-only.

    Declaration
    public static readonly CloneablePropertyAttribute No
    Field Value
    Type
    CloneablePropertyAttribute

    Yes

    Specifies that a property should be cloned if the assigned object implements ICloneable. This static field is Read-only.

    Declaration
    public static readonly CloneablePropertyAttribute Yes
    Field Value
    Type
    CloneablePropertyAttribute

    Properties

    CloneableProperty

    Indicates whether a property should be cloned if the assigned object implements ICloneable.

    Declaration
    public bool CloneableProperty { get; }
    Property Value
    Type
    System.Boolean

    Methods

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type
    System.Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type
    System.Int32

    IsCloneableProperty(PropertyInfo)

    Indicates whether the CloneablePropertyAttribute has been set for the property.

    Declaration
    public static bool IsCloneableProperty(PropertyInfo info)
    Parameters
    Type Name Description
    System.Reflection.PropertyInfo info

    A System.Reflection.PropertyInfo

    Returns
    Type Description
    System.Boolean

    True if property has a CloneablePropertyAttribute; false otherwise.

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved