# ListView Scale

1. ##### John
15 posts
Member since:
Nov 2013

Posted 28 Nov 2013 Link to this post

Hello Support Team!
Please let me know how can I change the scale transform of radListView ?
It is possible with hierarchy but how does this happen via code?
Thanks.
2. ##### Dimitar
2841 posts

Posted 03 Dec 2013 Link to this post

Hi John,

Thank you for contacting us.

You can set the scale transform in code very easy like this:
`radListView1.ListViewElement.ScaleTransform = ``new ``SizeF(2.00f, 2.00f);`

However I am not sure what exactly you are trying to achieve with this. If this is not what you are looking for I want to kindly ask you to send us more details on what exactly you are trying to accomplish. Hopefully this will help us to provide you with a proper solution.

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
3. ##### John
15 posts
Member since:
Nov 2013

Posted 03 Dec 2013 Link to this post

It works, thank you!
I tried below code and doesn't work:

`radListView1.ListViewElement.ScaleTransform = ``new ``Size(1, .5);`

Would you please let me know what is different between Size and SizeF ?
Also what is those " f " after 2.00 ?
Thanks.
4. ##### Dimitar
2841 posts

Posted 06 Dec 2013 Link to this post

Hi John,

Thank you for writing back.

SizeF stores an ordered pair of floating-point numbers, typically the width and height of a rectangle. Size is pretty much the same but it is using integer numbers and this is not useful for scaling because you cannot set scaling of 1.5 with integers.

The 'f' suffix is used for float type, which is used for the SizeF properties in this case. More information about this type is available in the following MSDN article: float (C# Reference).

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.