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.String
|
The internal canvas storage version used
string CanvasDataVersion { get; }
System.String
|
The ICanvasColumn hosting this control
ICanvasColumn Column { get; }
ICanvasColumn
|
Type of the control: 4 is a text part, 3 is a client side web part
int ControlType { get; }
System.Int32
|
The internal storage version used for this control
string DataVersion { get; set; }
System.String
|
Instance ID of the control
Guid InstanceId { get; set; }
Guid
|
Value of the control's "data-sp-controldata" attribute
string JsonControlData { get; }
System.String
|
Order of the control in the control collection
int Order { get; set; }
System.Int32
|
The ICanvasSection hosting this control
ICanvasSection Section { get; }
ICanvasSection
|
Removes the control from the page
void Delete()
Moves the control to another section and column
void Move(ICanvasColumn newColumn)
ICanvasColumn
newColumn
New column that will host the control |
Moves the control to another section and column
void Move(ICanvasColumn newColumn, int order)
ICanvasColumn
newColumn
New column that will host the control |
System.Int32
order
New order for the control in the new column |
Moves the control to another section and column
void Move(ICanvasSection newSection)
ICanvasSection
newSection
New section that will host the control |
Moves the control to another section and column
void Move(ICanvasSection newSection, int order)
ICanvasSection
newSection
New section that will host the control |
System.Int32
order
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)
ICanvasColumn
newColumn
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)
ICanvasColumn
newColumn
New column that will host the control |
System.Int32
position
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)
ICanvasSection
newSection
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)
ICanvasSection
newSection
New section that will host the control |
System.Int32
position
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.Int32
position
New position for this control |