SpreadsheetSheetDrawingBuilder
Methods
TopLeftCell(System.String)
A cell to which the drawing's top-left corner is anchored.
Parameters
value - System.String
The value that configures the topleftcell.
Example
@( Html.Kendo().Spreadsheet()
.Name("spreadsheet")
.Images(new { testImage = "../Content/images/sample-image.png" })
.Sheets(sheets =>
{
sheets.Add()
.Name("Food Order")
.Drawings(dr =>
{
dr.Add()
.TopLeftCell("C3")
.Image("testImage");
});
})
)
OffsetX(System.Double)
The horizontal offset from the anchor cell's top-left corner, in pixels.
Parameters
value - System.Double
The value that configures the offsetx.
Example
@( Html.Kendo().Spreadsheet()
.Name("spreadsheet")
.Images(new { testImage = "../Content/images/sample-image.png" })
.Sheets(sheets =>
{
sheets.Add()
.Name("Food Order")
.Drawings(dr =>
{
dr.Add()
.TopLeftCell("C3")
.OffsetX(30)
.Image("testImage");
});
})
)
OffsetY(System.Double)
The vertical offset from the anchor cell's top-left corner, in pixels.
Parameters
value - System.Double
The value that configures the offsety.
Example
@( Html.Kendo().Spreadsheet()
.Name("spreadsheet")
.Images(new { testImage = "../Content/images/sample-image.png" })
.Sheets(sheets =>
{
sheets.Add()
.Name("Food Order")
.Drawings(dr =>
{
dr.Add()
.TopLeftCell("C3")
.OffsetY(10)
.Image("testImage");
});
})
)
Width(System.Double)
The drawing's width in pixels.
Parameters
value - System.Double
The value that configures the width.
Example
@( Html.Kendo().Spreadsheet()
.Name("spreadsheet")
.Images(new { testImage = "../Content/images/sample-image.png" })
.Sheets(sheets =>
{
sheets.Add()
.Name("Food Order")
.Drawings(dr =>
{
dr.Add()
.TopLeftCell("C3")
.Width(100)
.Image("testImage");
});
})
)
Height(System.Double)
The drawing's height in pixels.
Parameters
value - System.Double
The value that configures the height.
Example
@( Html.Kendo().Spreadsheet()
.Name("spreadsheet")
.Images(new { testImage = "../Content/images/sample-image.png" })
.Sheets(sheets =>
{
sheets.Add()
.Name("Food Order")
.Drawings(dr =>
{
dr.Add()
.TopLeftCell("C3")
.Height(100)
.Image("testImage");
});
})
)
Image(System.String)
The ID of the image to display.
Parameters
value - System.String
The value that configures the image.
Example
@( Html.Kendo().Spreadsheet()
.Name("spreadsheet")
.Images(new { testImage = "../Content/images/sample-image.png" })
.Sheets(sheets =>
{
sheets.Add()
.Name("Food Order")
.Drawings(dr =>
{
dr.Add()
.TopLeftCell("C3")
.OffsetY(10)
.Image("testImage");
});
})
)