C1.C1Preview Namespace > TableVectorCollection Class : GetVectorSize Method |
Because elements of a RenderTable's collections (cells, rows and columns) are physically created "on demand" only when they are accessed via collections' indexer properties, using this method is more efficient when you only need to test the height/width of a row/column without creating it.
For instance, the following code physically creates a TableRow object before testing its height:
RenderTable rt = new RenderTable(); if (rt.Rows[10].Height == Unit.Auto) doSomething();
At the same time, the following code does not cause a physical row object to be created, while being functionally identical to the code above: RenderTable rt = new RenderTable(); if (rt.Rows.GetVectorSize(10) == Unit.Auto) doSomething();
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2