Files
Future/Future.Contract/Attributes/ObjectEditor.cs

29 lines
833 B
C#
Raw Normal View History

2025-08-30 17:19:57 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Contract
{
/// <summary>
/// 告知参数编辑器的行为
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class ObjectEditorAttribute : Attribute
{
/// <summary>
/// 参数编辑器的实现类型,默认不使用
/// </summary>
public Type EditorType { get; set; }
/// <summary>
/// 参数编辑器的显示模式,默认为“嵌入式”
/// </summary>
public EViewShowMode ShowMode { get; set; }
/// <summary>
/// 是否允许自由添加参数
/// </summary>
public bool AllowAddParameter { get; set; }
}
}