/// <summary>
 /// This method is setting shape text properties
 /// </summary>
 /// <param name="aShape">shape to work upon</param>
 /// <param name="aText">text to assign to shape</param>
 /// <param name="aFontSize">font size of shape text</param>
 /// <param name="aHorizAlignment">text alignment</param>
 private void SetTextProperties( Visio.Shape aShape, string aText, string aFontSize, int aHorizAlignment )
 {
     // set shape text
     aShape.Text = aText;
     // set font size
     aShape.get_CellsSRC((short)Visio.VisSectionIndices.visSectionCharacter, (short)Visio.VisRowIndices.visRowFirst, (short)Visio.VisCellIndices.visCharacterSize).FormulaForceU = aFontSize;
     // set alignment
     aShape.get_CellsSRC((short)Visio.VisSectionIndices.visSectionParagraph, (short)Visio.VisRowIndices.visRowFirst, (short)Visio.VisCellIndices.visHorzAlign).set_ResultFromIntForce( Visio.VisUnitCodes.visNoCast, aHorizAlignment );
     // set transparent text background
     aShape.get_Cells( CELL_TEXT_BKGND_TRANS ).FormulaForceU = "100%";
 }
 /// <summary>
 /// This method is preparing page for core connections diagram
 /// </summary>
 /// <param name="aPageSheet">Page shape sheet to set proper cells values</param>
 private void SetPageProperties( Visio.Shape aPageSheet )
 {
     //set page width
     aPageSheet.get_Cells( CELL_PAGE_WIDTH ).set_ResultFromIntForce( Visio.VisUnitCodes.visMillimeters, PAGE_WIDTH_MM );
     //set page height
     aPageSheet.get_Cells( CELL_PAGE_HEIGHT ).set_ResultFromIntForce( Visio.VisUnitCodes.visMillimeters, PAGE_HEIGHT_MM );
 }