Back to Devexpress

PropertyEditor.PropertyName Property

expressappframework-devexpress-dot-expressapp-dot-editors-dot-propertyeditor-e1292995.md

latest4.6 KB
Original Source

PropertyEditor.PropertyName Property

Specifies the name of the property that is represented by the current Property Editor.

Namespace : DevExpress.ExpressApp.Editors

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public string PropertyName { get; set; }
vb
Public Property PropertyName As String

Property Value

TypeDescription
String

A string value representing the name of the property bound to the current Property Editor.

|

Remarks

This property returns the IModelMemberViewItem.PropertyName property value of the Application Model‘s node. This node can be accessed using the PropertyEditor.Model property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the PropertyName property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

XAF-search-objects-using-complex-criterion/CS/Dennis.Search.Win/SearchObjectViewController.cs#L42

csharp
foreach(ListPropertyEditor editor in dv.GetItems<ListPropertyEditor>())
    if(editor.PropertyName == SearchResultsCollectionName)
        editor.ControlCreated += new EventHandler<EventArgs>(editor_ControlCreated);

xaf-separate-employees-data-in-different-departments-using-security-permissions/CS/MainDemo.Module/Controllers/HideProtectedContentController.cs#L34

csharp
if(!DataManipulationRight.CanRead(View.ObjectTypeInfo.Type,
    ((PropertyEditor)e.Item).PropertyName,
    e.ContextObjects.Length > 0 ? e.ContextObjects[0] : null, null,

XAF-search-objects-using-complex-criterion/VB/Dennis.Search.Win/SearchObjectViewController.vb#L54

vb
For Each editor As ListPropertyEditor In dv.GetItems(Of ListPropertyEditor)()
    If Equals(editor.PropertyName, SearchResultsCollectionName) Then AddHandler editor.ControlCreated, New EventHandler(Of EventArgs)(AddressOf editor_ControlCreated)
Next

xaf-separate-employees-data-in-different-departments-using-security-permissions/VB/MainDemo.Module/Controllers/HideProtectedContentController.vb#L43

vb
If Not DataManipulationRight.CanRead(View.ObjectTypeInfo.Type, (CType(e.Item, PropertyEditor)).PropertyName, If(e.ContextObjects.Length > 0, e.ContextObjects(0), Nothing), Nothing, View.ObjectSpace) Then
    e.AppearanceObject.Visibility = ViewItemVisibility.Hide

See Also

How the XAF Application Model Works

PropertyEditor Class

PropertyEditor Members

DevExpress.ExpressApp.Editors Namespace