Geometry.Parse方法
来源:互联网 发布:万宝路黑冰爆珠淘宝 编辑:程序博客网 时间:2024/06/06 12:16
Geometry.Parse方法
将一个字符串转化成Geometry对象
举例:在WPF程序中刷新一条线段上的点:
example.xaml中:
<Path x:Name="ecg" Stroke="Red" Data="M 220,0 C 230,0 70,100 200,100 S 470,0 200,0" Margin="0,0,0,0" Stretch="Fill"></Path><Button x:Name="button" Content="Button" Grid.Column="1" HorizontalAlignment="Left" Height="22" Margin="199.2,117.2,-170.4,0" Grid.Row="1" VerticalAlignment="Top" Width="132" Click="button_Click"/>
example.xaml.cs中:
private void button_Click(object sender, RoutedEventArgs e) { ecg.Data = Geometry.Parse("M 0, 200 Q 100, 0 200, 200 Q 300, 400 400, 200"); }
效果:
阅读全文
0 0
- Geometry.Parse方法
- PostGIS 操作geometry方法
- Geometry.h的一些方法
- Geometry.h的一些方法
- Geometry.h的一些方法
- classContainer方法parse
- JSON.parse()方法
- JSON parse()方法
- JavaScript parse() 方法
- JavaScript parse() 方法
- JSON的方法--parse()
- JSON.parse()方法
- JSON.parse()方法
- 转载:JSON.parse()方法
- JSON.parse()方法
- JSON.parse()方法
- JSON.parse()方法
- sproto parse方法解析
- window.setTimeout() 和window.setInterval() 的区别
- 跨平台C语言长连接之quene数据结构
- HTML5+PLUS移动APP开发入门
- linux使用jstack来找出死循环的java代码
- 455. Assign Cookies
- Geometry.Parse方法
- 用API函数设置颜色
- JSON数组,JSON对象,数组的区别与基本操作整理
- Oracle 必会
- 算法之路-三位数反转
- iOS开发之xcode中查看已发布应用的崩溃日志
- CRC循环冗余校验码
- org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].Standard
- 线程状态