Пример #1
0
        /// <summary>
        /// Save Features.Charts.Fonts settings to the settings file
        /// </summary>
        /// <param name="generalNode">XML-node for the Features.Charts.Fonts settings</param>
        public void Save(XmlNode fontNode)
        {
            string xpath;

            xpath = "./name";
            SettingsHelper.SetSettingValue(xpath, fontNode, Name);

            xpath = "./titleSize";
            SettingsHelper.SetSettingValue(xpath, fontNode, TitleSize.ToString());

            xpath = "./axisSize";
            SettingsHelper.SetSettingValue(xpath, fontNode, AxisSize.ToString());
        }
Пример #2
0
 public Column(
     [NotNull] List <Widget> children,
     [CanBeNull] Key key = null,
     CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.Start,
     MainAxisAlignment mainAxisAlignment   = MainAxisAlignment.Start,
     AxisSize crossAxisSize = AxisSize.Min,
     AxisSize mainAxisSize  = AxisSize.Min
     ) : base(
         children,
         key
         )
 {
     CrossAxisAlignment = crossAxisAlignment;
     MainAxisAlignment  = mainAxisAlignment;
     CrossAxisSize      = crossAxisSize;
     MainAxisSize       = mainAxisSize;
 }
Пример #3
0
 public GridFlow(
     [NotNull] List <Widget> children,
     [CanBeNull] Key key = null,
     CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.Start,
     MainAxisAlignment mainAxisAlignment   = MainAxisAlignment.Start,
     AxisSize crossAxisSize               = AxisSize.Min,
     AxisSize mainAxisSize                = AxisSize.Min,
     [CanBeNull] int?maxCrossAxisCount    = null,
     [CanBeNull] float?maxCrossAxisExtent = null)
     : base(children, key)
 {
     CrossAxisAlignment = crossAxisAlignment;
     MainAxisAlignment  = mainAxisAlignment;
     CrossAxisSize      = crossAxisSize;
     MainAxisSize       = mainAxisSize;
     MaxCrossAxisCount  = Math.Max(maxCrossAxisCount ?? int.MaxValue, 1);
     MaxCrossAxisExtent = Math.Max(maxCrossAxisExtent ?? float.MaxValue, 1);
 }