expressappframework-devexpress-dot-expressapp-dot-editors-dot-propertyeditor-e1292995.md
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
public string PropertyName { get; set; }
Public Property PropertyName As String
| Type | Description |
|---|---|
| String |
A string value representing the name of the property bound to the current Property Editor.
|
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
foreach(ListPropertyEditor editor in dv.GetItems<ListPropertyEditor>())
if(editor.PropertyName == SearchResultsCollectionName)
editor.ControlCreated += new EventHandler<EventArgs>(editor_ControlCreated);
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
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
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