skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI UI for Xamarin

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility and Security
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class PropertySet

A dynamic type that describes a set of properties.

Inheritance
System.Object
PropertySet
Namespace: Telerik.Windows.Controls.Data.PropertyGrid
Assembly: Telerik.Windows.Controls.Data.dll

Syntax

public class PropertySet : DynamicObject, INotifyPropertyChanged, IDataErrorInfo

Constructors

PropertySet()

Initializes a new instance of the PropertySet class.

Declaration
public PropertySet()

PropertySet(Func<String, Object, String>)

Initializes a new instance of the PropertySet class.

Declaration
public PropertySet(Func<string, object, string> validationFunc)
Parameters
System.Func<System.String, System.Object, System.String> validationFunc

The validation function.

Fields

ShouldAddNullForNonMatchingValuesProperty

Represent the ShouldAddNullForNonMatchingValuesProperty attached property.

Declaration
public static readonly DependencyProperty ShouldAddNullForNonMatchingValuesProperty
Field Value
System.Windows.DependencyProperty

Properties

Error

Gets an error message indicating what is wrong with this object.

Declaration
public string Error { get; }
Property Value
System.String

An error message indicating what is wrong with this object. The default is an empty string ("").

Item[String]

Gets or sets the System.Object with the specified column name.

Declaration
public object this[string property] { get; set; }
Parameters
System.String property

Property Value
System.Object

Methods

GetDynamicMemberNames()

Returns the enumeration of all dynamic member names.

Declaration
public override IEnumerable<string> GetDynamicMemberNames()
Returns
System.Collections.Generic.IEnumerable<System.String>

A sequence that contains dynamic member names.

GetShouldAddNullForNonMatchingValues(DependencyObject)

Gets the value of ShouldAddNullForNonMatchingValuesProperty attached property.

Declaration
public static bool GetShouldAddNullForNonMatchingValues(DependencyObject element)
Parameters
System.Windows.DependencyObject element

The object to get the property for.

Returns
System.Boolean

OnPropertyChanged(String)

Called when [property changed].

Declaration
protected void OnPropertyChanged(string fileName)
Parameters
System.String fileName

Name of the file.

SetShouldAddNullForNonMatchingValues(DependencyObject, Boolean)

Sets the value of ShouldAddNullForNonMatchingValuesProperty attached property.

Declaration
public static void SetShouldAddNullForNonMatchingValues(DependencyObject element, bool value)
Parameters
System.Windows.DependencyObject element

The object to set the property to.

System.Boolean value

TryGetMember(GetMemberBinder, out Object)

Provides the implementation for operations that get member values. Classes derived from the System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as getting a value for a property.

Declaration
public override bool TryGetMember(GetMemberBinder binder, out object result)
Parameters
System.Dynamic.GetMemberBinder binder

Provides information about the object that called the dynamic operation. The binder.Name property provides the name of the member on which the dynamic operation is performed. For example, for the Console.WriteLine(sampleObject.SampleProperty) statement, where sampleObject is an instance of the class derived from the System.Dynamic.DynamicObject class, binder.Name returns "SampleProperty". The binder.IgnoreCase property specifies whether the member name is case-sensitive.

System.Object result

The result of the get operation. For example, if the method is called for a property, you can assign the property value to result.

Returns
System.Boolean

true if the operation is successful; otherwise, false. If this method returns false, the run-time binder of the language determines the behavior. (In most cases, a run-time exception is thrown.).

TrySetMember(SetMemberBinder, Object)

Provides the implementation for operations that set member values. Classes derived from the System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as setting a value for a property.

Declaration
public override bool TrySetMember(SetMemberBinder binder, object value)
Parameters
System.Dynamic.SetMemberBinder binder

Provides information about the object that called the dynamic operation. The binder.Name property provides the name of the member to which the value is being assigned. For example, for the statement sampleObject.SampleProperty = "Test", where sampleObject is an instance of the class derived from the System.Dynamic.DynamicObject class, binder.Name returns "SampleProperty". The binder.IgnoreCase property specifies whether the member name is case-sensitive.

System.Object value

The value to set to the member. For example, for sampleObject.SampleProperty = "Test", where sampleObject is an instance of the class derived from the System.Dynamic.DynamicObject class, the value is "Test".

Returns
System.Boolean

true if the operation is successful; otherwise, false. If this method returns false, the run-time binder of the language determines the behavior. (In most cases, a language-specific run-time exception is thrown.).

Events

PropertyChanged

Occurs when a property value changes.

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.ComponentModel.PropertyChangedEventHandler

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.