Подскажите пожалуйста, что неверного в коде:
Почему textTitle2 не сжимаеться при пустом значении?StiReportTitleBand titleBand = new StiReportTitleBand();
titleBand.CanShrink = true;
titleBand.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0.4, 19, 1.8);
titleBand.Name = "ЗаголовокОтчета1";
page.Components.Add(titleBand);
// textTitle1
StiText textTitle1 = new StiText();
textTitle1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0, 19, 0.6);
textTitle1.DockStyle = Stimulsoft.Report.Components.StiDockStyle.Top;
textTitle1.HorAlignment = Stimulsoft.Base.Drawing.StiTextHorAlignment.Center;
textTitle1.Name = "Text1";
textTitle1.Text = "Отчёт о принятых на работу";
textTitle1.VertAlignment = Stimulsoft.Base.Drawing.StiVertAlignment.Center;
//textTitle1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
//textTitle1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
textTitle1.Font = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Bold);
//textTitle1.Interaction = null;
//textTitle1.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
//textTitle1.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
//textTitle1.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, true, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
// textTitle2
StiText textTitle2 = new Stimulsoft.Report.Components.StiText();
textTitle2.CanGrow = true;
textTitle2.CanShrink = true;
textTitle2.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0.6, 19, 0.6);
textTitle2.GrowToHeight = true;
textTitle2.HorAlignment = Stimulsoft.Base.Drawing.StiTextHorAlignment.Center;
textTitle2.Name = "Text2";
textTitle2.Text = "";
//textTitle2.Text = " 22222222222222 22222222222222222 2222222222222222222 2222222222222222222 22222222222222222 222222222222 222222222222222 ";
textTitle2.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
textTitle2.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
textTitle2.Font = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Bold);
textTitle2.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, true, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
textTitle2.Guid = null;
textTitle2.Interaction = null;
textTitle2.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
textTitle2.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
// textTitle3
StiText textTitle3 = new Stimulsoft.Report.Components.StiText();
textTitle3.CanGrow = true;
textTitle3.CanShrink = true;
textTitle3.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 1.2, 19, 0.6);
textTitle3.GrowToHeight = true;
textTitle3.HorAlignment = Stimulsoft.Base.Drawing.StiTextHorAlignment.Center;
textTitle3.Name = "Text3";
textTitle3.Text = "3333333";
textTitle3.Font = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Bold);
titleBand.Components.Clear();
titleBand.Components.AddRange(new Stimulsoft.Report.Components.StiComponent[] {
textTitle1,
textTitle2,
textTitle3});
//End Master Gode
Спасибо.