Inconsistent types for StiText HorAlignment / VertAlignment

Stimulsoft Ultimate discussion
Post Reply
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

Inconsistent types for StiText HorAlignment / VertAlignment

Post by tpontow »

Hallo,

currently im working with dynamic report creation. So i have to create new Instances of StiText class. In this context i saw that the properties StiText.HorAlignment and StiText.VertAlignment are from types with inconsitent names.

Code: Select all

 StiText textControlForDataColumn = new StiText
                        {
                            HorAlignment = StiTextHorAlignment.Left,
                            VertAlignment = StiVertAlignment.Center
                        };
Why are the names not StiTextVertAlignment or StiHorAlignment for consistence reason? That would be a little bit easier to remember or to conclude.

Kind regards
Thorsten Pontow
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Inconsistent types for StiText HorAlignment / VertAlignm

Post by Alex K. »

Hello,

Yes, it is slight inaccuracy. But it is more then 8 years old, and we cannot change something now.

Thank you.
Post Reply