public void Init()
		{
			string xml = "<root attribute1=''></root>";
			int index = 10;
			
			MockTextEditor textEditor = new MockTextEditor();
			textEditor.Document.Text = xml;
			textEditor.Caret.Offset = index;
			
			selectedElement = new SelectedXmlElement(textEditor);
		}
		public void Init()
		{
			string xml = "<parent a='attributeValue'></parent>";
			int index = 15;
			
			MockTextEditor textEditor = new MockTextEditor();
			textEditor.Document.Text = xml;
			textEditor.Caret.Offset = index;
			
			selectedElement = new SelectedXmlElement(textEditor);
		}
		public void Init()
		{
			string xml = "<abc></abc>";
			int index = 2;
			
			MockTextEditor textEditor = new MockTextEditor();
			textEditor.Document.Text = xml;
			textEditor.Caret.Offset = index;
			
			selectedElement = new SelectedXmlElement(textEditor);
		}
コード例 #4
0
		void FindSelectedElement(string xml, int index)
		{
			selectedElement = new SelectedXmlElement(xml, index);
		}
コード例 #5
0
 void FindSelectedElement(string xml, int index)
 {
     selectedElement = new SelectedXmlElement(xml, index);
 }