#region Using Directives
using System;
#endregion Using Directives
namespace ScintillaNET
{
///
/// Manages the Native Scintilla's Document features.
///
///
/// See Scintilla's documentation on multiple views for an understanding of Documents.
/// Note that all ScintillaNET specific features are considered to be part of the View, not document.
///
public class DocumentHandler : TopLevelHelper
{
#region Methods
///
/// Creates a new Document
///
///
public Document Create()
{
return new Document(Scintilla, NativeScintilla.CreateDocument());
}
#endregion Methods
#region Properties
///
/// Gets/Sets the currently loaded Document
///
public Document Current
{
get
{
return new Document(Scintilla, NativeScintilla.GetDocPointer());
}
set
{
NativeScintilla.SetDocPointer(value.Handle);
}
}
#endregion Properties
#region Constructors
internal DocumentHandler(Scintilla scintilla) : base(scintilla) { }
#endregion Constructors
}
}