Beispiel #1
0
        private void InsertClipping(FixedContentEditor editor)
        {
            #region radpdfprocessing-editing-fixedcontenteditor_6
            string visibleText       = "The last word in this text is";
            string text              = string.Format("{0} clipped.", visibleText); //The last word in this text is clipped.
            Size   visisibleTextSize = editor.MeasureText(visibleText);

            using (editor.PushClipping(new Rect(new Point(0, 0), visisibleTextSize)))
            {
                editor.DrawText(text);
            }
            #endregion
        }