내 속성 표에 동일한 유형의 두 개의 필드가 있습니다. 그러나 하나는 읽기 전용이고 다른 하나는 편집 가능합니다.읽기 전용 인 사용자 정의 UITypeEditor에 대한 엘립시는 어떻게 제거합니까?
이러한 필드는 모두 사용자 지정 형식이므로 필드에 elipsis ([...]) 단추를 넣는 사용자 지정 UITypeEditor가 있습니다. 이 예에서
[
CategoryAttribute("5 - Wind"),
DisplayName("Factored Area"),
Description("The factored area for the segment."),
EditorAttribute(typeof(umConversionTypeEditor), typeof(UITypeEditor)),
TypeConverter(typeof(umConversionTypeConverter)),
ReadOnly(true)
]
public FactoredAreaClass FactoredArea { ... }
[
CategoryAttribute("5 - Wind"),
DisplayName("Factored Area Modifier"),
Description("The factored area modifier."),
EditorAttribute(typeof(umConversionTypeEditor), typeof(UITypeEditor)),
TypeConverter(typeof(umConversionTypeConverter))
]
public FactoredAreaClass FactoredAreaMod { ... }
는 FactoredAreaMod 편집 할 수 있습니다,하지만 둘 다 사용자와 큰 혼란을 야기 할 elipsis을 보유하고 있습니다. 그걸 끄는 어떤 방법?
예에서를, 내가 읽기 전용 속성을 사용했다는 것을 알 수 있습니다. 그리고 이것은 런타임 동안 속성 표 내에서 사용하기위한 것입니다. 그래서 나는 단지 운이 좋다? – Jerry
이제 알 수 있습니다. 그러나 EditorAttribute 선언 우선 순위가 의심됩니다. 해당 속성을 FactoredAreaMod 유형에 적용하거나 실제로 편집해야하는 속성에만 적용해야합니다. –