Accessing via code to Name of the Sheet not the SheetName Propertie

Posted by: jars on 8 September 2017, 2:18 pm EST

  • Posted 8 September 2017, 2:18 pm EST

    Hi,

    In the propertie SheetName I get the name of the sheet that the user see, but I want to access via code to the propertie "NAME"  in the Category "DESIGN".

     

    Thanks.

  • Replied 8 September 2017, 2:18 pm EST

    Hello,

    Using should be able to get SheetName using code also by accessing the same "SheetName" property.

    dim sheetname as new String

    sheetname= fpspread1.Sheets(0).SheetName

    msgbox(sheetname)

    I hope it will help you.

    Thanks,

  • Replied 8 September 2017, 2:18 pm EST

    Hi,

     Thanks but I don't want the SheetName but Name, if you select one of the sheet added, you look under the category "Design"you can see the NAME property, which
    is different from the property SHEETNAME under Appereance category.

     

    Thanks.

  • Replied 8 September 2017, 2:18 pm EST

    Hello,

    "fpspread1_Sheet1" is the name of spread's sheetview collection object.I don't find a way to access the name through code.If you want to change the name of this object you may assign it to any other sheetview object. 

    e.g.

            Dim Fp_Sheet1 As FarPoint.Win.Spread.SheetView
            Fp_Sheet1 = FpSpread1_Sheet1
            Fp_Sheet1.Columns.Count = 14


    Thanks,

     

     

  • Replied 8 September 2017, 2:18 pm EST

    Jars,


    The "(Name)", "GenerateMember", and "Modifiers" properties under the "Design" category in the property grid are not real properties that can be accessed at run time.  These are psuedo properties added to the property grid by the design time environment.  These psuedo properties are used at design time to tell the design time environment how to generate code (ex. Windows From Designer generated code in the Form1.Designer.cs file).

  • Replied 8 September 2017, 2:18 pm EST

    Hi,

     Now I understand, I appreciate your answers. The topic can be closed. Big Smile

     

    Thanks.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels