Exemplo n.º 1
0
 /// <summary>
 /// Construct a <c>TextElement</c> with the specified <see cref="TextStyle"/>
 /// </summary>
 public TextElement(TextStyle textStyle)
 {
     TextStyle = textStyle ;
 }
Exemplo n.º 2
0
        public void AddRange(TextStyle [] textStyles)
        {
            foreach(TextStyle textStyle in textStyles) {
                if (textStyle != null) {
                    textStyle.PropertyChange += new UIComponents.TextElementPropertyChangeEventHandler(TextStyleCollection_PropertyChange);
                    base.InnerList.Add(textStyle) ;
                }
            }

            OnChangeEvent() ;
        }
Exemplo n.º 3
0
 public void Insert(int index,TextStyle textStyle)
 {
     if (textStyle != null) {
         List.Insert(index,textStyle) ;
         textStyle.PropertyChange += new UIComponents.TextElementPropertyChangeEventHandler(TextStyleCollection_PropertyChange);
         OnChangeEvent() ;
     }
 }
Exemplo n.º 4
0
        public int Add(TextStyle textStyle)
        {
            if (textStyle == null)
                return -1 ;

            int result = base.InnerList.Add(textStyle) ;

            if (result != -1) {
                textStyle.PropertyChange += new UIComponents.TextElementPropertyChangeEventHandler(TextStyleCollection_PropertyChange);
                OnChangeEvent() ;
            }

            return result ;
        }