in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

LayoutControlItem multiline text

Last post 11/10/2008 8:15 AM by Roman K (Developer Express). 3 replies.
Page 1 of 1 (4 items)
Sort Posts:
Previous Next
  • 11/7/2008 9:47 AM

    LayoutControlItem multiline text

    Is it possible to make word wrap in LayoutControlItem text?

    Filed under: ,
  • 11/10/2008 3:19 AM In reply to

    Re: LayoutControlItem multiline text

    Alex, please take a look at this code snippet

                this.layoutControlItem1.AllowHtmlStringInCaption = true;
                this.layoutControlItem1.AppearanceItemCaption.Options.UseTextOptions = true;
                this.layoutControlItem1.AppearanceItemCaption.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
                this.layoutControlItem1.Control = this.buttonEdit1;
                this.layoutControlItem1.ControlAlignment = System.Drawing.ContentAlignment.MiddleCenter;
                this.layoutControlItem1.CustomizationFormText = "one";
                this.layoutControlItem1.FillControlToClientArea = false;
                this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
                this.layoutControlItem1.MaxSize = new System.Drawing.Size(0, 120);
                this.layoutControlItem1.MinSize = new System.Drawing.Size(166, 120);
                this.layoutControlItem1.Name = "layoutControlItem1";
                this.layoutControlItem1.Size = new System.Drawing.Size(234, 222);
                this.layoutControlItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
                this.layoutControlItem1.Text = "first line second line third line etc";
                this.layoutControlItem1.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.CustomSize;
                this.layoutControlItem1.TextLocation = DevExpress.Utils.Locations.Left;
                this.layoutControlItem1.TextSize = new System.Drawing.Size(100, 100);

    Thanks, Roman

    R&D, .NET Team
    Developer Express Inc.

    PS. If you wish to receive direct assistance from our Support Team, use Support Center at http://www.devexpress.com/Support/Center
  • 11/10/2008 4:37 AM In reply to

    Re: LayoutControlItem multiline text

    Is it possible to get multiline with TextAlignMode = UseParentOptions? I don't whant to lose horisontal alligment of other layout control items. Multiline should require only fixed height after all.

  • 11/10/2008 8:15 AM In reply to

    Re: LayoutControlItem multiline text

    At present the automatic text alignment mechanism supports only single line labels.

    Thanks, Roman

    R&D, .NET Team
    Developer Express Inc.

    PS. If you wish to receive direct assistance from our Support Team, use Support Center at http://www.devexpress.com/Support/Center
Page 1 of 1 (4 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED