public Legend() { this.outlineColorField = new rgbColorType(); this.labelField = new Label(); this.keySpacingField = new sizeType(); this.keySizeField = new sizeType(); this.imageColorField = new rgbColorType(); }
public ScaleBar() { this.sizeField = new sizeType(); this.outlineColorField = new rgbColorType(); this.labelField = new Label(); this.imageColorField = new rgbColorType(); this.colorField = new rgbColorType(); this.backgroundColorField = new rgbColorType(); this.intervalsField = "4"; this.positionField = positionEnum.LR; this.postLabelCacheField = booleanEnum.FALSE; this.unitsField = unitType.MILES; this.statusField = "OFF"; }
public Class() { this.symbolField = new symbolType(); this.styleField = new ObservableCollection<Style>(); this.labelField = new Label(); this.expressionField = new expressionType(); this.colorField = new rgbColorType(); this.backgroundColorField = new rgbColorType(); this.maxSizeField = "50"; this.minSizeField = "0"; this.sizeField = "1"; this.statusField = stateEnum.ON; }
public static bool LoadFromFile(string fileName, out Label obj) { System.Exception exception = null; return LoadFromFile(fileName, out obj, out exception); }
/// <summary> /// Deserializes xml markup from file into an Label object /// </summary> /// <param Name="fileName">string xml file to load and deserialize</param> /// <param Name="obj">Output Label object</param> /// <param Name="exception">output Exception value if deserialize failed</param> /// <returns>true if this XmlSerializer can deserialize the object; otherwise, false</returns> public static bool LoadFromFile(string fileName, out Label obj, out System.Exception exception) { exception = null; obj = default(Label); try { obj = LoadFromFile(fileName); return true; } catch (System.Exception ex) { exception = ex; return false; } }
public static bool Deserialize(string xml, out Label obj) { System.Exception exception = null; return Deserialize(xml, out obj, out exception); }
/// <summary> /// Deserializes workflow markup into an Label object /// </summary> /// <param Name="xml">string workflow markup to deserialize</param> /// <param Name="obj">Output Label object</param> /// <param Name="exception">output Exception value if deserialize failed</param> /// <returns>true if this XmlSerializer can deserialize the object; otherwise, false</returns> public static bool Deserialize(string xml, out Label obj, out System.Exception exception) { exception = null; obj = default(Label); try { obj = Deserialize(xml); return true; } catch (System.Exception ex) { exception = ex; return false; } }