Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
830
First Line Indent
posted

Hi,

I´m trying to create a simple text composition. The final layout should ba like a list but with text. The text appearance should be:

Text Tittle:   The regular text rom the first line must start from the regular indent and

                       the text continued in other lines should be indented.

How can I achieve this.

My first idea was:

string dataText = "Leader Text:" + TabString + GetTextFromField(DataField);

and then:

IText text = section.AddText();

text.AddContent(dataText);

The pattern to apply;

 

 

 

 

 

TextPattern pattern = new TextPattern();

pattern.Alignment =

new TextAlignment(Alignment.Left);

pattern.Indents =

new Infragistics.Documents.Report.Text.Indents(-20, 30, 0);

pattern.Tabs.AddTab(30);

It doesn´t work because the Tab is placed at 30 points from the Indent and I cannot Add a Tab in th 0 place, pattern.Tabs.AddTab(0); throws an Argument Out of Range Exception.

I don´t know how to cretae a simple French type Hanging Indent.

Thanks.