/// <summary> /// Create a markup pointer positioned within the container. /// </summary> /// <returns></returns> public MarkupPointer CreateMarkupPointer(POSITION initialPosition) { MarkupPointer p = MarkupServices.CreateMarkupPointer(); switch (initialPosition) { case POSITION.DOCUMENT_START: p.MoveToContainer(this, true); break; case POSITION.BODY_START: p.MoveAdjacentToElement(Document.body, _ELEMENT_ADJACENCY.ELEM_ADJ_AfterBegin); break; case POSITION.BODY_END: p.MoveAdjacentToElement(Document.body, _ELEMENT_ADJACENCY.ELEM_ADJ_BeforeEnd); break; case POSITION.DOCUMENT_END: p.MoveToContainer(this, false); break; } return(p); }