zoukankan
html css js c++ java
propertyGrid实现选项(原创)
Draw Dorp-Down propertyGrid
[TypeConverter(
typeof
(backgroundRepeatConverter)),
DescriptionAttribute(
"
description
"
),
CategoryAttribute(
"
行为
"
)]
public
string
backgroundRepeat
{
get
{
if
(e.style.backgroundRepeat
==
null
)
return
""
;
return
e.style.backgroundRepeat;
}
set
{
e.style.backgroundRepeat
=
value;
}
}
public
class
backgroundRepeatConverter: StringConverter
{
public
override
StandardValuesCollection
GetStandardValues(ITypeDescriptorContext context)
{
return
new
StandardValuesCollection(
new
string
[]
{
"
repeat
"
,
"
repeat-x
"
,
"
repeat-y
"
,
"
no-repeat
"
}
);
}
public
override
bool
GetStandardValuesSupported(
ITypeDescriptorContext context)
{
return
true
;
}
public
override
bool
GetStandardValuesExclusive(
ITypeDescriptorContext context)
{
return
true
;
}
}
查看全文
相关阅读:
Python 生成器
Python 装饰器
Go语言【第十四篇】:Go语言基础总结
Go语言【第十三篇】:Go语言递归函数
Go语言【第十二篇】:Go数据结构之:切片(Slice)、范围(Range)、集合(Map)
Go语言【第十一篇】:Go数据结构之:结构体
Java入门之:对象和类
Alpha阶段第2周/共2周 Scrum立会报告+燃尽图 04
Alpha阶段第2周/共2周 Scrum立会报告+燃尽图 03
Alpha阶段第2周/共2周 Scrum立会报告+燃尽图 02
原文地址:https://www.cnblogs.com/alice/p/189034.html
最新文章
Amazon 解决下载文件乱码
Amzon MWS API开发之 上传数据
JS如何设置计算几天前的时间?
如何计算一段程序逻辑运行时间?
SQLHelper.cs
Amzon MWS API开发之 请求报告
Amzon MWS API开发之订单接口
Easyui tabs学习
IOC、注入
spring使用bean
热门文章
@Autowired
spring教程(一):简单实现(转)
spring依赖注入(转)
转:adb操作命令详解及大全
shell脚本监控URL并自动发邮件
LINUX定时任务
Linux curl命令详解
Eclipse快捷键功能
Xshell访问本地或者远程Linux虚拟机
Python 迭代器
Copyright © 2011-2022 走看看