"This property is obsolete now. Use the TextPattern property instead."的警告解决办法
来源:互联网 发布:买鞋软件 编辑:程序博客网 时间:2024/06/05 17:16
最近在AE开发中用到了 DevExpress.XtraCharts.Series.Label.PointOptions这个属性,vs下编译出现如下警告
该警告的意思是项目中使用的这个属性已经过时,建议使用series.Label.TextPattern这个属性:
//
// 摘要:
// Gets or sets a string which represents the pattern specifying the text to
// be displayed within series labels.
[Category("Behavior")]
[Editor("DevExpress.XtraCharts.Design.SeriesLabelTextPatternEditor,DevExpress.XtraCharts.v15.1.Wizard, Version=15.1.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a", typeof(UITypeEditor))]
[XtraSerializableProperty]
public string TextPattern { get; set; }
修改后:
这里总结一下TextPattern的用法:她是一个string类型的属性,表示数据标签上要显示的内容
其可选的值为{A}{V}{S} 一般的这是方式有series.Label.TextPattern = "{V}";//series.Label.TextPattern = "{V}{A}"等
{A}表示argument {V}表示数据值 {S}表示series
如果series.Label.TextPattern=“”{A}//{V}//{S}“” ,则效果如下:
- "This property is obsolete now. Use the TextPattern property instead."的警告解决办法
- Warning: require_gem is obsolete. Use gem instead.
- jQuery 的 event.returnValue is deprecated. Please use the standard event.preventDefault() instead. 警告
- Property “Value” is already defined. Use to resolve this conflict.
- 解决API property-resolver/variable-resolver is deprecated after JSF 1.1. Use el-resolver instead.
- Thrown by JAXB : Property "Any" is already defined. Use <jaxb:property> to resolve this conflict.
- DEPRECATED: Use of this script to execute hdfs command is deprecated. Instead use the hdfs command
- VS2005智能设备项目的Bug:"The OutputPath property is not set for this project..."
- #("The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name:")
- VS2015编译问题:The POSIX name for this item is deprecated. Instead, use the ISO C
- #("The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name:")
- Autosynthesized property 警告的消除
- DEPRECATED: Use of this script to execute hdfs command is deprecated. Instead use the hdfs command f
- 编译trimesh2遇到问题:The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant names
- error C4996: 'getpid': The POSIX name for this item is deprecated. Instead, use the ISO C++ conforma
- vs编译项目报错:The OutputPath property is not set for this project
- Failed to set the 'value' property on 'HTMLInputElement': This input element解决办法
- 自定义List的ItemRenderer常遇到的警告unable to bind to property的解决办法实例
- 自定义列表编辑状态左侧选择按钮图片
- CSS清除浮动的8种方法
- JavaScript数据类型
- Linux运维第八讲
- 7款经典的MySQL客户端软件
- "This property is obsolete now. Use the TextPattern property instead."的警告解决办法
- ibtais入门搭建小例子——爬坑之路
- 使用layer完成点击弹窗并且提交数据以及日期插件的使用
- Java @interface
- C++真的比C差吗
- IPv6 Cocos2d-x
- Android Studio Jni 环境配置
- [BZOJ]1996: [Hnoi2010]chorus 合唱队 区间DP
- Java this关键字