浏览代码

Added obsolete attr to slider

Tig 1 年之前
父节点
当前提交
5ef4b4c015
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Terminal.Gui/Views/Slider.cs

+ 1 - 0
Terminal.Gui/Views/Slider.cs

@@ -381,6 +381,7 @@ public class Slider<T> : View
     ///     For testing, if there is no SuperView, the slider will be sized based on what <see cref="InnerSpacing"/> is
     ///     For testing, if there is no SuperView, the slider will be sized based on what <see cref="InnerSpacing"/> is
     ///     set to.
     ///     set to.
     /// </remarks>
     /// </remarks>
+    [ObsoleteAttribute ("Use Dim.Auto instead.", false)]
     public override bool AutoSize
     public override bool AutoSize
     {
     {
         get => _config._autoSize;
         get => _config._autoSize;