RadrichTextBox line spacing

2 posts, 0 answers
  1. vikas
    vikas avatar
    11 posts
    Member since:
    May 2011

    Posted 30 Jul 2014 Link to this post

    I am using the below code for RadRichTextBox. The linespacine between lines of text is 1. I want the line spacing to be 0. Can you please have a look and advise.

     <telerik:RadRichTextBox HorizontalAlignment="Left" LayoutMode="Flow" AcceptsTab="False" IsSpellCheckingEnabled="False" IsContextMenuEnabled="False" IsSelectionMiniToolBarEnabled="False"
                                        DocumentInheritsDefaultStyleSettings="True"  GotFocus="TxtLeftHeaderBox_OnGotFocus" Visibility="{Binding HeaderVisibility}" Width="175" Height="125" Margin="5">
                        <telerik:RadDocument LineSpacing="0" LineSpacingType="Auto" >
                                <telerik:Paragraph FontSize="10" LineSpacing="0" LineSpacingType="Auto" >
                                    <telerik:Span FontFamily="Arial" Text=" "  FontSize="10" />

  2. Petya
    Petya avatar
    983 posts

    Posted 04 Aug 2014 Link to this post

    Hello vikas,

    If you want to set the line spacing property of a paragraph to 0 you can set the LineSpacingType to Exact and the LineSpacing to 0. However, please note that line spacing value 1 is the equivalent of no spacing between lines, whereas 0 (or any value smaller than 1 actually) would force the lines in the paragraph to overlap one another.

    I hope this is useful.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top