.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

IDocumentElement.Accept(IDocumentVisitor) Method

Accepts a visitor.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v20.1.Core.dll

Declaration

void Accept(
    IDocumentVisitor visitor
)
Sub Accept(
    visitor As IDocumentVisitor
)

Parameters

Name Type Description
visitor IDocumentVisitor

A visitor to visit document elements.

Examples

public override void Visit(DocumentTextBox textbox)
 {
   DocumentIterator textBoxIterator = textBox.GetIterator(true);
   MyVisitor textBoxVisitor = new MyVisitor();
     while (textBoxIterator.MoveNext())
        textBoxIterator.Current.Accept(textBoxVisitor);
 }
See Also