From c398d58fc0d980b4e19ad2cbc822c25ab6dbc462 Mon Sep 17 00:00:00 2001 From: Vyacheslav Date: Wed, 15 Jan 2020 09:02:11 +0700 Subject: [PATCH] Updated FindShapeSizes example --- .../Document/DocumentBuilderInsertElements.cs | 2 +- Examples/CSharp/Rendering-Printing/RenderShape.cs | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Examples/CSharp/Programming-Documents/Document/DocumentBuilderInsertElements.cs b/Examples/CSharp/Programming-Documents/Document/DocumentBuilderInsertElements.cs index 52d0d0c37..ae94278ed 100644 --- a/Examples/CSharp/Programming-Documents/Document/DocumentBuilderInsertElements.cs +++ b/Examples/CSharp/Programming-Documents/Document/DocumentBuilderInsertElements.cs @@ -28,7 +28,7 @@ public static void Run() public static void InsertTextInputFormField(string dataDir) { // ExStart:DocumentBuilderInsertTextInputFormField - Words.Document doc = new Words.Document(); + Document doc = new Document(); DocumentBuilder builder = new DocumentBuilder(doc); builder.InsertTextInput("TextInput", TextFormFieldType.Regular, "", "Hello", 0); diff --git a/Examples/CSharp/Rendering-Printing/RenderShape.cs b/Examples/CSharp/Rendering-Printing/RenderShape.cs index 176c87b0e..93967bd68 100644 --- a/Examples/CSharp/Rendering-Printing/RenderShape.cs +++ b/Examples/CSharp/Rendering-Printing/RenderShape.cs @@ -152,10 +152,6 @@ public static void RenderParagraphToImage(string dataDir, Document doc) public static void FindShapeSizes(Shape shape) { // ExStart:FindShapeSizes - SizeF shapeSizeInDocument = shape.GetShapeRenderer().SizeInPoints; - float width = shapeSizeInDocument.Width; // The width of the shape. - float height = shapeSizeInDocument.Height; // The height of the shape. - Size shapeRenderedSize = shape.GetShapeRenderer().GetSizeInPixels(1.0f, 96.0f); using (Bitmap image = new Bitmap(shapeRenderedSize.Width, shapeRenderedSize.Height))