Class CanvasView
Definition
- Namespace:
- Tizen.NUI.BaseComponents.VectorGraphics
- Assembly:
- Tizen.NUI.dll
CanvasView is a class for displaying vector primitives.
C#Copypublic class CanvasView : View, INotifyPropertyChanged, IDisposable
- Inheritance
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Constructors
Declaration
C#Copypublic CanvasView()
Declaration
C#Copypublic CanvasView(Size2D viewBox)
Parameters
Type | Name | Description |
---|---|---|
Size2D | viewBox | The size of viewbox. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when viewBox is null. |
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 |
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 |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when drawable is null. |
Declaration
C#Copypublic void RemoveAllDrawables()
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 |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when drawable is null. |
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable