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
close icon

FontComboBox or ListBox

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

3 Replies

AD Administrator Syncfusion Team February 27, 2004 06:55 PM UTC

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 07:10 PM UTC

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 29, 2004 04:26 AM UTC

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