[CONNECT .NET] Create a TextTable from a Seed

How do we use .NET method TextTable.CloneAsSeed?  It's non-static, so we must first create a table.  Looks like a chicken-and-egg situation.

Parents
  • Hi ,

    Extending a little bit on what Yongan provided...

    The TextTable Create and CloneAsSeed methods are used to create a "layout" (in memory instance) vs. final "presentation".
    Here is a code snip providing a couple quick example tests:

    //Create w/nul and valid model
    TextTable textTable1 = TextTable.Create(4, 4, style.Id, 1000.0, null);
    TextTable textTable2 = TextTable.Create(4, 4, style.Id, 1000.0, model);
    
    //Create via CloneAsSeed w/nul and valid model
    TextTable textTable3 = textTable2.CloneAsSeed(5, 5, null);
    TextTable textTable4 = textTable2.CloneAsSeed(5, 5, model);

    HTH,
    Bob



    Answer Verified By: Jon Summers 

Reply
  • Hi ,

    Extending a little bit on what Yongan provided...

    The TextTable Create and CloneAsSeed methods are used to create a "layout" (in memory instance) vs. final "presentation".
    Here is a code snip providing a couple quick example tests:

    //Create w/nul and valid model
    TextTable textTable1 = TextTable.Create(4, 4, style.Id, 1000.0, null);
    TextTable textTable2 = TextTable.Create(4, 4, style.Id, 1000.0, model);
    
    //Create via CloneAsSeed w/nul and valid model
    TextTable textTable3 = textTable2.CloneAsSeed(5, 5, null);
    TextTable textTable4 = textTable2.CloneAsSeed(5, 5, model);

    HTH,
    Bob



    Answer Verified By: Jon Summers 

Children