Class represent a TabStopStyle.
Inheritance: IStyle
		/// <summary>
		/// Creates the tab stop style.
		/// </summary>
		/// <param name="styleNode">The style node.</param>
		/// <returns></returns>
		private TabStopStyle CreateTabStopStyle(XmlNode styleNode)
		{
			TabStopStyle tabStopStyle			= new TabStopStyle(this._document, styleNode.CloneNode(true));
			IPropertyCollection pCollection		= new IPropertyCollection();

			return tabStopStyle;
		}
Example #2
0
        /// <summary>
        /// Gets the tab stop style.
        /// </summary>
        /// <param name="leaderStyle">The leader style.</param>
        /// <param name="leadingChar">The leading char.</param>
        /// <param name="position">The position.</param>
        /// <returns>A for a table of contents optimized TabStopStyleCollection</returns>
        public TabStopStyleCollection GetTabStopStyle(string leaderStyle, string leadingChar, double position)
        {
            TabStopStyleCollection tabStopStyleCol	= new TabStopStyleCollection(((TextDocument)this.Document));
            //Create TabStopStyles
            TabStopStyle tabStopStyle				= new TabStopStyle(((TextDocument)this.Document), position);
            tabStopStyle.LeaderStyle				= leaderStyle;
            tabStopStyle.LeaderText					= leadingChar;
            tabStopStyle.Type						= TabStopTypes.Center;
            //Add the tabstop
            tabStopStyleCol.Add(tabStopStyle);

            return tabStopStyleCol;
        }