/// <summary> /// Set zoom. In the zoom tag inside settings.xml file it sets the value of zoom /// </summary> /// <param name="zoomPercent"></param> /// <example> /// sample snippet from Settings.xml /// /// <w:zoom w:percent="50" /> /// </example> public void SetZoomPercent(long zoomPercent) { if (!ctSettings.IsSetZoom()) { ctSettings.AddNewZoom(); } CT_Zoom zoom = ctSettings.zoom; zoom.percent = zoomPercent.ToString(); }
/** * Set zoom.<br/> * In the zoom tag inside Settings.xml file <br/> * it Sets the value of zoom * <br/> * sample snippet from Settings.xml * <pre> * <w:zoom w:percent="50" /> * <pre> */ public void SetZoomPercent(long zoomPercent) { //if (!ctSettings.IsSetZoom()) //{ // ctSettings.AddNewZoom(); //} CT_Zoom zoom = ctSettings.zoom; //zoom.Percent = (BigInt32.ValueOf(zoomPercent)); zoom.percent = zoomPercent.ToString(); }
/** * Set zoom.<br/> * In the zoom tag inside Settings.xml file <br/> * it Sets the value of zoom * <br/> * sample snippet from Settings.xml * <pre> * <w:zoom w:percent="50" /> * <pre> * @return percentage as an integer of zoom level */ public long GetZoomPercent() { CT_Zoom zoom = ctSettings.zoom; //if (!ctSettings.IsSetZoom()) //{ // zoom = ctSettings.AddNewZoom(); //} //else //{ // zoom = ctSettings.zoom; //} return(long.Parse(zoom.percent)); }
/** * In the zoom tag inside Settings.xml file <br/> * it Sets the value of zoom * @return percentage as an integer of zoom level */ public long GetZoomPercent() { CT_Zoom zoom = ctSettings.zoom; if (!ctSettings.IsSetZoom()) { zoom = ctSettings.AddNewZoom(); } else { zoom = ctSettings.zoom; } return(long.Parse(zoom.percent)); }
public long GetZoomPercent() { CT_Zoom zoom = this.ctSettings.zoom; return(long.Parse((this.ctSettings.IsSetZoom() ? this.ctSettings.zoom : this.ctSettings.AddNewZoom()).percent)); }