Ticket T156062
Visible to All Users

DocumentManager - Tabbed View - How to trim header caption text

created 10 years ago

Hi,

We would like toindicate to our users that a tab header caption was shortened. At the momentthe caption is just cut.

Is there already anoption to show these captions with 3 dots "…" if they are to long forthe specified tab width? If not could you indroduce such an option?

Thanks a lot,
Matthias

Answers approved by DevExpress Support

created 10 years ago (modified 10 years ago)

Hello,
For this, specify the tab width for a document using the TabWidthproperty. You can find it here:
TabbedView.DocumentProperties;
TabbedView.DocumentGroupProperties;
Document.Properties.
Then, enable trimming for a document header caption using the Appearance.Header.TextOptions' Trimming property.

For instance:

C#
document.Properties.TabWidth = 100; document.Appearance.Header.Options.UseTextOptions = true; document.Appearance.Header.TextOptions.Trimming = DevExpress.Utils.Trimming.EllipsisCharacter;

Please try this approach and let me know if you have further questions.

    Comments (2)

      Thanks Jannet, that's what I was looking for!

      DevExpress Support Team 10 years ago

        You are always welcome!

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.