Back to Devexpress

XPTypeInfo.IsVisibleInDesignTime Property

xpo-devexpress-dot-xpo-dot-metadata-dot-xptypeinfo.md

latest3.0 KB
Original Source

XPTypeInfo.IsVisibleInDesignTime Property

Gets whether a property or class is visible at design time.

Namespace : DevExpress.Xpo.Metadata

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public bool IsVisibleInDesignTime { get; }
vb
Public ReadOnly Property IsVisibleInDesignTime As Boolean

Property Value

TypeDescription
Boolean

true if the property or class is visible at design time; otherwise, false.

|

Remarks

The IsVisibleInDesignTime property returns true for the property or class which is marked with the MemberDesignTimeVisibilityAttribute attribute.

The following code snippets (auto-collected from DevExpress Examples) contain references to the IsVisibleInDesignTime 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.

xpo-json-serialization/CS/XpoSerialization/JsonConverters.cs#L37

csharp
&&
member.IsVisibleInDesignTime
&&

XPO_how-to-get-a-list-of-a-persistent-objects-properties-e725/CS/Form1.cs#L97

csharp
foreach(XPClassInfo info in XpoDefault.Session.Dictionary.Classes) {
    if(info.IsPersistent && info.IsVisibleInDesignTime)
        comboBox1.Items.Add(info);

XPO_how-to-get-a-list-of-a-persistent-objects-properties-e725/VB/Form1.vb#L97

vb
For Each info As XPClassInfo In XpoDefault.Session.Dictionary.Classes
    If info.IsPersistent AndAlso info.IsVisibleInDesignTime Then comboBox1.Items.Add(info)
Next

See Also

XPTypeInfo Class

XPTypeInfo Members

DevExpress.Xpo.Metadata Namespace