

The rightmost side of the grid(an x2 coordinate).The leftmost side of the grid(an x1 coordinate).Can you guess what we need to figure out? In order to ensure that when we render the grid it's final place is centered on the origin, we will need to make some calculations. The cellSize object will specify the columns width, and the rows height. The parameters(rows and columns) will specify how many of each(row or column) that we will be drawing. That being said, lets skip ahead for a second, but hold

This means that when we draw the grid, it needs to be exactly centered on our origin. But what about the rest of them?įor clarification, in our 2 dimensional circumstance, the origin specifies our x,y center of the grid to be drawn. We are going to use the methods of the g parameter to draw with(this one is easy).

So how do you think we will use the G, origin, rows, columns, and cellSize parameters? Why would you want to draw in Office? Possibly the most common use is diagrams or flow charts – a quick version that maybe you’ll convert into something nicer later.Now that you have taken a moment to compare what you came up with, for simplicities sake, replace your code with the above code. If you have better drawing skills than Peter (see below) then you’ll be able to do many fancy and impressive things with the Draw tools in Office. Note: What you see on the Draw tab will depend on which Office app you have, whether you are an Office 365 customer and, at the moment, if you’re on the ‘Insider’ track or not. Some apps have extra drawing features that, hopefully, will appear across all Office incarnations in the future. Office now has drawing in all recent versions of its programs across all platforms. Add a special pointer and you have a drawing tablet. But now touch screens are easily obtainable on desktops, common on laptops, and compulsory for smartphones. Once upon a time, drawing onto a Word document or Excel worksheet was only possible with a specialist drawing tablet ( Wacom etc) or digital pen. Word, Excel, PowerPoint and some nice drawing stuff in OneNote Microsoft has been getting serious about drawing features in Office so we thought it was time to look at what’s available and possible across all the Office applications.
