DesktopSDK 0.7 - PenData Library (C#) Documentation
ContentsIndexHome
Shape Class
Shape Constructor  Shape Fields  Shape Methods  Shape Properties  Shape Members  AFP Wrapper
C#
public class Shape : AFPObject, IDisposable;

In the underlying C++ code wrapped by the C# AFP API Wrapper, Shape is the superclass for all other shape types (for example: Rectangle, Polygon). However, in the AFP API Wrapper, shapes like Rectangle and Polygon do not actually derive from Shape. Instead, most of the classes defining a kind of shape have a implicit cast to Shape. Hence, you can use one of those objects wherever a Shape is required--without needing an explicit cast. The difference in your code will be negligible, but the class inheritance hierarchy in the C# wrapper is greatly simplified.

File

ShapeEx.cs

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.
Copyright © 2010 Livescribe, Inc. All rights reserved.