/// <summary> /// Creates a new instance off <see cref="DocumentEventArgs"/> /// </summary> public DocumentEventArgs(VXmlDocument document, int offset, int length, string text) { this.document = document; this.offset = offset; this.length = length; this.text = text; }
public VXmlNode(string nodeName, VXmlDocument doc) : this(doc) { Name = nodeName; CreateTextLine(); }
internal static bool SelectionIsReadOnly(VXmlDocument document, ISelection sel) { //if (document.EditorProperties.SupportReadOnlySegments) // return document.MarkerStrategy.GetMarkers(sel.Offset, sel.Length).Exists(m => m.IsReadOnly); //else return false; }
public VXmlHeader(VXmlDocument doc) : base(doc) { Version = "1.0"; Encoding = "utf-8"; Standalone = ""; CreateTextLine(); }
public void Dispose() { if (this.document != null) { document.DocumentChanged -= new DocumentEventHandler(DocumentChanged); this.document = null; } }
/// <summary> /// Creates a new instance of <see cref="DefaultSelection"/> /// </summary> public DefaultSelection(VXmlDocument document, TextLocation startPosition, TextLocation endPosition) { //DefaultDocument.ValidatePosition(document, startPosition); //DefaultDocument.ValidatePosition(document, endPosition); Debug.Assert(startPosition <= endPosition); this.document = document; this.startPosition = startPosition; this.endPosition = endPosition; }
//public Line[] Lines //{ // get { return _lstLine.ToArray(); } //} #endregion public VXmlNode(VXmlDocument doc) { _lstAttributes = new List <VXmlAttribute>(); _lstChildNode = new List <VXmlNode>(); _lstLineText = null; _lstLineSegment = new List <LineSegment>(); Layer = 0; Document = doc; }
public VXmlHeader(VXmlDocument doc, System.Xml.XmlNode header) : this(doc) { if (header.NodeType == System.Xml.XmlNodeType.XmlDeclaration) { System.Xml.XmlDeclaration dec = header as System.Xml.XmlDeclaration; Version = dec.Version; Encoding = dec.Encoding; Standalone = dec.Standalone; CreateTextLine(); } }
public Bookmark(VXmlDocument document, TextLocation location, bool isEnabled) { this.document = document; this.isEnabled = isEnabled; this.Location = location; }
public Bookmark(VXmlDocument document, TextLocation location) : this(document, location, true) { }
/// <summary> /// Creates a new instance of <see cref="BookmarkManager"/> /// </summary> internal BookmarkManager(VXmlDocument document) { this.document = document; }
public static VXmlDmRefNode CreateFromString(string xml, VXmlDocument doc) { VXmlDmRefNode node = new VXmlDmRefNode(doc); return(node); }
public VXmlDmRefNode(VXmlDocument doc) : base(doc) { }
public VXmlTextNode(VXmlDocument doc) : base(doc) { }
/// <summary> /// Creates a new instance off <see cref="DocumentEventArgs"/> /// </summary> public DocumentEventArgs(VXmlDocument document) : this(document, -1, -1, null) { }
public VXmlComment(VXmlDocument doc) : base(doc) { }
/// <summary> /// Creates a new instance of <see cref="SelectionManager"/> /// </summary> public SelectionManager(VXmlDocument document, TextBoxControl textArea) { this.document = document; this.textArea = textArea; document.DocumentChanged += new DocumentEventHandler(DocumentChanged); }
/// <summary> /// Creates a new instance of <see cref="SelectionManager"/> /// </summary> public SelectionManager(VXmlDocument document) { this.document = document; document.DocumentChanged += new DocumentEventHandler(DocumentChanged); }
/// <summary> /// Creates a new instance off <see cref="DocumentEventArgs"/> /// </summary> public DocumentEventArgs(VXmlDocument document, int offset) : this(document, offset, -1, null) { }
/// <summary> /// Creates a new instance off <see cref="DocumentEventArgs"/> /// </summary> public DocumentEventArgs(VXmlDocument document, int offset, int length) : this(document, offset, length, null) { }
public VXmlCDataSection(VXmlDocument doc) : base(doc) { }
public VXmlTableNode(VXmlDocument doc) : base(doc) { }