RichTextBox control supports full justification?

426 views
Skip to first unread message

Joe

unread,
Jan 29, 2008, 11:46:51 AM1/29/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hello,

Do you know if the RichTextBox control supports the full text
justification? Microsoft Word does with RTF file. So the RTF format
supports it of course.

If I produce a RTF file using Microsoft Word that is full justify I
can load it into the RichTextBox control without problems. Everything
is justify like in Microsoft Word. However the control seems unable to
produce a RTF content from scratch that is text justified. We have a
property named SelectionAlignment on the control but it accepts a
HorizontalAlignment Enum value which only supports left, center and
right alignment.

Any idea?

Andrew Badera

unread,
Jan 29, 2008, 12:04:02 PM1/29/08
to DotNetDe...@googlegroups.com
Does that property change the underlying RTF code to match the code produced by Word?
--
--Andy Badera
http://andrew.badera.us/
and...@badera.us
(518) 641-1280
Google me: http://www.google.com/search?q=andrew+badera

Joe

unread,
Jan 29, 2008, 2:49:27 PM1/29/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Yes.

I found an answer to it! It's right here:
http://geekswithblogs.net/pvidler/archive/2003/10/15/182.aspx

An API call do the job. Works perfectly. ;-)

On 29 jan, 12:04, "Andrew Badera" <and...@badera.us> wrote:
> Does that property change the underlying RTF code to match the code produced
> by Word?
>
> On 1/29/08, Joe <jonathanpou...@globetrotter.net> wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > Do you know if the RichTextBox control supports the full text
> > justification? Microsoft Word does with RTF file. So the RTF format
> > supports it of course.
>
> > If I produce a RTF file using Microsoft Word that is full justify I
> > can load it into the RichTextBox control without problems. Everything
> > is justify like in Microsoft Word. However the control seems unable to
> > produce a RTF content from scratch that is text justified. We have a
> > property named SelectionAlignment on the control but it accepts a
> > HorizontalAlignment Enum value which only supports left, center and
> > right alignment.
>
> > Any idea?
>
> --
> --Andy Baderahttp://andrew.badera.us/
> and...@badera.us
> (518) 641-1280
> Google me:http://www.google.com/search?q=andrew+badera- Masquer le texte des messages précédents -
>
> - Afficher le texte des messages précédents -

Andrew Badera

unread,
Jan 30, 2008, 2:28:15 PM1/30/08
to DotNetDe...@googlegroups.com
Cool :)


On 1/29/08, Joe <jonatha...@globetrotter.net> wrote:



--
--Andy Badera
Reply all
Reply to author
Forward
0 new messages