Automatically fills one or more edge and vertex attribute columns by mapping values from user-specified source columns.
Call the AutoFillWorkbook method to autofill one or more edge and vertex attribute columns. The method takes an object that specifies one or more source-to-destination column mappings. For example, the settings might specify that the vertex color column should be autofilled by mapping the numbers in a numeric source to a specified range of colors, and that the edge width column should be autofilled by mapping the numbers in another numeric source column to a specified range of widths.

All methods are static.

Inheritance: Object
Ejemplo n.º 1
0
        TryAutoFillWorkbook
        (
            ThisWorkbook oThisWorkbook
        )
        {
            Debug.Assert(oThisWorkbook != null);

            try
            {
                WorkbookAutoFiller.AutoFillWorkbook(
                    oThisWorkbook.InnerObject, new AutoFillUserSettings());

                oThisWorkbook.OnWorkbookAutoFilled(false);

                return(true);
            }
            catch (Exception oException)
            {
                ErrorUtil.OnException(oException);
                return(false);
            }
        }