Esempio n. 1
0
 public ElementRef ChangeParent(ElementRef parent)
 {
     return(ChangeProp(ImClone(this), im => im.Parent = parent));
 }
Esempio n. 2
0
        private const string ATTR_INDEX = "index"; // Not L10N

        protected ElementRef(ElementRef parent)
        {
            Parent    = parent;
            Prototype = this;
        }
Esempio n. 3
0
 protected bool Equals(ElementRef other)
 {
     return(Equals(Parent, other.Parent) && Index == other.Index && string.Equals(Name, other.Name));
 }
Esempio n. 4
0
 private static Exception AnnotationsNotSupported(ElementRef elementRef)
 {
     throw new InvalidOperationException(String.Format(Resources.DocumentAnnotations_AnnotationsNotSupported_The_element___0___cannot_have_annotations_, elementRef));
 }
Esempio n. 5
0
 private static Exception AnnotationDoesNotApplyException(string name, ElementRef elementRef)
 {
     return(new InvalidDataException(string.Format(Resources.DocumentAnnotations_AnnotationDoesNotApplyException_Annotation___0___does_not_apply_to_element___1___,
                                                   name, elementRef)));
 }
Esempio n. 6
0
 private static Exception ElementNotFoundException(ElementRef elementRef)
 {
     return(new InvalidDataException(string.Format(Resources.DocumentAnnotations_ElementNotFoundException_Could_not_find_element___0___, elementRef)));
 }