Exemple #1
0
        /// <summary>
        /// Returns the Page Width in inches.
        /// </summary>
        /// <param name="page">Page.</param>
        /// <returns>Page width in inches.</returns>
        public static double getPageWidth(Visio.Page page)
        {
            Visio.Cell cell = page.PageSheet.get_CellsSRC(
                (short)Visio.VisSectionIndices.visSectionObject,
                (short)Visio.VisRowIndices.visRowPage,
                (short)Visio.VisCellIndices.visPageWidth);

            return(cell.get_Result(Visio.VisUnitCodes.visInches));
        }
Exemple #2
0
 public static bool GetDoubleCellVal(Visio.Cell visCell, int visUnits, out double dblValue)
 {
     dblValue = visCell.get_Result(visUnits);
     return(true);
 }