protected override object DoGetNativeValue(string key, string qsValue, IPDFComponent comp) { PDFThickness val; if (string.IsNullOrEmpty(qsValue) || !PDFThickness.TryParse(qsValue, out val)) { val = this.Value; } return(val); }
protected override void DoSetNativeValueFromString(string value, IPDFComponent owner) { PDFThickness val; if (PDFThickness.TryParse(value, out val)) { this.Value = val; } else { this.Value = PDFThickness.Empty(); } }