We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

FontComboBox or ListBox

How to get the selected Font from a FontComboBox or ListBox ? Thanks

3 Replies

AD Administrator Syncfusion Team February 27, 2004 01:55 PM

Hi Frederic, You could do so using the code below : selectedFont = this.fontComboBox1.Items[this.fontComboBox1.SelectedIndex]; Please refer to the sample attached that shows how this can be done. Let me know if you have any questions. Regards, Guru Patwal Syncfusion, Inc.


FP Frédéric Pache February 27, 2004 02:10 PM

Thanks for this fast answer. Actually I was more waiting for System.Drawing.Font from the FontComboBox. But this helped me: System.Drawing.Font new_font = new Font(fontComboBox1.Items[fontComboBox1.SelectedIndex].ToString(), 6);


AD Administrator Syncfusion Team February 28, 2004 11:26 PM

Hi Frederic, Thanks for sharing this information with us. Please do let us know if you have any other questions. We appreciate your interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Loader.
Live Chat Icon For mobile
Up arrow icon