3 Answers, 1 is accepted
0
Hi John,
Thank you for contacting us.
You can set the scale transform in code very easy like this:
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
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.
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.
Sign up for Free application insights >>
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
John
Top achievements
Rank 1
answered on 03 Dec 2013, 08:08 PM
It works, thank you!
I tried below code and doesn't work:
But your code works successfully,
Would you please let me know what is different between Size and SizeF ?
Also what is those " f " after 2.00 ?
Thanks.
I tried below code and doesn't work:
radListView1.ListViewElement.ScaleTransform =
new
Size(1, .5);
But your code works successfully,
Would you please let me know what is different between Size and SizeF ?
Also what is those " f " after 2.00 ?
Thanks.
0
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
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.
Sign up for Free application insights >>
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>