| MultiRow Windows Forms > Developer's Guide > Using MultiRow > Cell Styles > Text Indent |
You can show text in a hierarchical level display by using the indent. You can specify the indent in pixels using the CellStyle.TextIndent property. The Styles in the Cell Types can be used to determine whether the specific cell type supports the indent.

This example sets the text indent.
Imports GrapeCity.Win.MultiRow
GcMultiRow1.ViewMode = ViewMode.Display
GcMultiRow1.AllowUserToAddRows = False
GcMultiRow1.Template = Template.CreateGridTemplate(New Cell() {New TextBoxCell()})
GcMultiRow1.RowCount = 3
GcMultiRow1.Rows(0).Cells(0).Value = "Level1"
GcMultiRow1.Rows(0).Cells(0).Style.TextIndent = 0
GcMultiRow1.Rows(1).Cells(0).Value = "Level2"
GcMultiRow1.Rows(1).Cells(0).Style.TextIndent = 10
GcMultiRow1.Rows(2).Cells(0).Value = "Level3"
GcMultiRow1.Rows(2).Cells(0).Style.TextIndent = 20
|
using GrapeCity.Win.MultiRow;
gcMultiRow1.ViewMode = ViewMode.Display;
gcMultiRow1.AllowUserToAddRows = false;
gcMultiRow1.Template = Template.CreateGridTemplate(new Cell[] {new TextBoxCell()});
gcMultiRow1.RowCount = 3;
gcMultiRow1.Rows[0].Cells[0].Value = "Level1";
gcMultiRow1.Rows[0].Cells[0].Style.TextIndent = 0;
gcMultiRow1.Rows[1].Cells[0].Value = "Level2";
gcMultiRow1.Rows[1].Cells[0].Style.TextIndent = 10;
gcMultiRow1.Rows[2].Cells[0].Value = "Level3";
gcMultiRow1.Rows[2].Cells[0].Style.TextIndent = 20;
|