AODL.Document.Content.Text.Indexes.TableOfContents.GetTabStopStyle C# (CSharp) Method

GetTabStopStyle() public method

Gets the tab stop style.
public GetTabStopStyle ( string leaderStyle, string leadingChar, double position ) : AODL.Document.Styles.TabStopStyleCollection
leaderStyle string The leader style.
leadingChar string The leading char.
position double The position.
return AODL.Document.Styles.TabStopStyleCollection
		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;
		}