Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1205
UltraTextEditor
posted

I have several UltraTextEditors on a TabControl. Using a foreach statement, I would like to access the properties of each UlteTextEditor object on single TabControl.

I thought  this might get the results I needed but I'm getting a systax error on the UltraTextEditors type. What type of object will get an UltraTextEditor?

foreach (Control cntrl in this..........)

{

if (cntrl.GetType() == typeof(UltraTextEditor)) // systax error //
{
    Console.WriteLine(cntrl.Name);


if (cntrl.GetType() == typeof(TextBox)) // this will get all MS textboxes //
{
  Console.WriteLine(cntrl.Name);
}

}

 Any suggestions are appreciated.

  • 48586
    posted

    Hello, ­­­­­

     

    I am just checking about the progress of this issue. Let me know If you need any further assistance on this  matter?

     

    Thank you for using Infragistics Components.

  • 48586
    posted

    Hello,

     

    It seems to me that you have missed curly braces after Console.WriteLine(cntrl.Name);  of the if(cntrl.GetType() == typeof(UltratextEditor)) statement. You could see all the syntaxes errors in “ErrorList”, which provide you more information about the error and what and where exactly the compiler expects.

     

    Please let me know if you have any further questions.