Back to Devexpress

TreeList.OptionsScrollAnnotations Property

windowsforms-devexpress-dot-xtratreelist-dot-treelist-cf05cc2c.md

latest2.6 KB
Original Source

TreeList.OptionsScrollAnnotations Property

Provides access to options specific to scrollbar annotations.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
[XtraSerializableProperty(XtraSerializationVisibility.Content, XtraSerializationFlags.DefaultValue)]
public TreeListOptionsScrollAnnotations OptionsScrollAnnotations { get; }
vb
<XtraSerializableProperty(XtraSerializationVisibility.Content, XtraSerializationFlags.DefaultValue)>
Public ReadOnly Property OptionsScrollAnnotations As TreeListOptionsScrollAnnotations

Property Value

TypeDescription
DevExpress.XtraTreeList.TreeListOptionsScrollAnnotations

Scrollbar annotation options.

|

Remarks

The OptionsScrollAnnotations property provides access to options that allow you to enable/disable specific annotations.

  • ShowErrors — specifies whether to mark nodes with validation errors
  • ShowFocusedRow — specifies whether to mark the focused node
  • ShowSelectedRows — specifies whether to mark selected nodes
  • ShowCustomAnnotations — specifies whether to mark nodes with custom annotations provided using the TreeList.CustomScrollAnnotation event

Scrollbar annotations are disabled if a corresponding option is set to Default. Set the option to True to enable scrollbar annotations.

csharp
// Enable annotations for the focused row.
treeList.OptionsScrollAnnotations.ShowFocusedRow = DefaultBoolean.True;
vb
' Enable annotations for the focused row.
treeList.OptionsScrollAnnotations.ShowFocusedRow = DefaultBoolean.True

See Also

Scrollbar Annotations

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace