Class CanvasView
Definition
- Namespace:
- Tizen.NUI.BaseComponents.VectorGraphics
- Assembly:
- Tizen.NUI.dll
- API Level:
- 9
CanvasView is a class for displaying vector primitives.
C#Copypublic class CanvasView : View, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
- Inheritance
- Implements
Constructors
Declaration
C#Copypublic CanvasView()
API Level: 9
Declaration
C#Copypublic CanvasView(Size2D viewBox)
Parameters
Type | Name | Description |
---|---|---|
Size2D | viewBox | The size of viewbox. |
API Level: 9
Fields
Declaration
C#Copypublic static readonly BindableProperty ViewBoxProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
View Source
ViewBox
The viewbox of the CanvasView. The viewbox means the size of CanvasView's internal space. If the size of the viewbox is larger than the size of the CanvasView, the shapes are displayed smaller than the specified size. The default value of the viewbox is the same as the size of the canvasview.
Declaration
C#Copypublic Size2D ViewBox { get; set; }
Property Value
Type | Description |
---|---|
Size2D |
API Level: 9
Methods
View Source
AddDrawable(Drawable)
Add drawable object to the CanvasView. This method is similar to registration. The added shape is drawn on the inner canvas.
Declaration
C#Copypublic void AddDrawable(Drawable drawable)
Parameters
Type | Name | Description |
---|---|---|
Drawable | drawable | Drawable object |
API Level: 9
Declaration
C#Copyprotected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type | DisposeTypes |
Overrides
Declaration
C#Copyprotected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Runtime.InteropServices.HandleRef | swigCPtr |
Overrides
Declaration
C#Copypublic void RemoveAllDrawables()
API Level: 9
View Source
RemoveDrawable(Drawable)
Remove drawable object to the CanvasView. This method is similar to deregistration.
Declaration
C#Copypublic void RemoveDrawable(Drawable drawable)
Parameters
Type | Name | Description |
---|---|---|
Drawable | drawable | Drawable object |