Interface ICanvasControl
Base interface for a canvas control
Namespace: PnP.Core.Model.SharePoint
Assembly: PnP.Core.dll
Syntax
public interface ICanvasControl
Base interface for a canvas control
public interface ICanvasControl
Value of the control's "data-sp-canvascontrol" attribute
string CanvasControlData { get; }
System.
|
The internal canvas storage version used
string CanvasDataVersion { get; }
System.
|
Type of the control: 4 is a text part, 3 is a client side web part
int ControlType { get; }
System.
|
The internal storage version used for this control
string DataVersion { get; set; }
System.
|
Instance ID of the control
Guid InstanceId { get; set; }
Guid
|
Value of the control's "data-sp-controldata" attribute
string JsonControlData { get; }
System.
|
Order of the control in the control collection
int Order { get; set; }
System.
|
Removes the control from the page
void Delete()
Moves the control to another section and column
void Move(ICanvasColumn newColumn)
ICanvas New column that will host the control |
Moves the control to another section and column
void Move(ICanvasColumn newColumn, int order)
ICanvas New column that will host the control |
System. New order for the control in the new column |
Moves the control to another section and column
void Move(ICanvasSection newSection)
ICanvas New section that will host the control |
Moves the control to another section and column
void Move(ICanvasSection newSection, int order)
ICanvas New section that will host the control |
System. New order for the control in the new section |
Moves the control to another section and column while keeping it's current position
void MovePosition(ICanvasColumn newColumn)
ICanvas New column that will host the control |
Moves the control to another section and column in the given position
void MovePosition(ICanvasColumn newColumn, int position)
ICanvas New column that will host the control |
System. New position for the control in the new column |
Moves the control to another section and column while keeping it's current position
void MovePosition(ICanvasSection newSection)
ICanvas New section that will host the control |
Moves the control to another section and column in the given position
void MovePosition(ICanvasSection newSection, int position)
ICanvas New section that will host the control |
System. New position for the control in the new section |
Moves the control inside the current column to a new position
void MovePosition(int position)
System. New position for this control |