Exemple #1
0
        /// <summary>
        /// Init and configure elemento. Loads varcontrol.
        /// </summary>
        private void init()
        {
            Width_percent = PDFDraw.Helper.GetAttributeWidthPercent(Attributes);

            //load var control.
            if (Attributes != null)
            {
                try{
                    string vVarCtrl = PDFDraw.Helper.GetAttributeValue(VarControlAttributeConstant, Attributes, null);
                    if (vVarCtrl != null)
                    {
                        this._varControl =
                            (VarValuesControl)Enum.Parse(typeof(VarValuesControl), vVarCtrl, true);
                    }
                }catch (Exception ex) {
                    Console.WriteLine(ex.ToString());
                }
            }
        }
Exemple #2
0
		/// <summary>
		/// Init and configure elemento. Loads varcontrol.
		/// </summary>
		private void init(){
			Width_percent = PDFDraw.Helper.GetAttributeWidthPercent(Attributes);
			
			//load var control.
			if(Attributes != null){
				try{
					string vVarCtrl = PDFDraw.Helper.GetAttributeValue( VarControlAttributeConstant, Attributes, null) ;
					if(vVarCtrl != null){
						this._varControl =
							(VarValuesControl)Enum.Parse( typeof( VarValuesControl), vVarCtrl, true);
					}
				}catch(Exception ex){
					Console.WriteLine(ex.ToString());
				}
			}
		}