Axiom.Samples.TextBox.FilterLines C# (CSharp) Method

FilterLines() protected method

Decides which lines to show.
protected FilterLines ( ) : void
return void
		protected void FilterLines()
		{
			String shown = "";
			int maxLines = this.HeightInLines;
			int newStart = (int)( this.scrollPercentage * ( this.lines.Count - maxLines ) + 0.5f );

			this.startingLine = newStart;

			for ( int i = 0; i < maxLines; i++ )
			{
				shown += this.lines[ this.startingLine + i ] + "\n";
			}

			this.textArea.Text = shown;    // show just the filtered lines
		}