AnnRedactionObject Class (original) (raw)

Summary

Defines an annotation redaction object.

Syntax

C#

Objective-C

C++/CLI

Java

Python

@interface LTAnnRedactionObject : LTAnnRectangleObject<NSCoding, NSCopying> 
public class AnnRedactionObject extends AnnRectangleObject 
class AnnRedactionObject(AnnRectangleObject): 

Example

This example creates a redaction object and adds it to the automation container.

using Leadtools.Annotations.Automation; using Leadtools.Annotations.Engine; using Leadtools.Codecs; using Leadtools.Annotations; using Leadtools.Annotations.WinForms; public void AnnCore_AnnRedactionObject() { // assumes _automation is valid double inch = 720.0; // Add a redaction object AnnRedactionObject redactObj = new AnnRedactionObject(); // Set the points for the rectangle redactObj.Points.Add(LeadPointD.Create(1 * inch, 1 * inch)); redactObj.Points.Add(LeadPointD.Create(2 * inch, 1 * inch)); redactObj.Points.Add(LeadPointD.Create(2 * inch, 2 * inch)); redactObj.Points.Add(LeadPointD.Create(1 * inch, 2 * inch)); // Set the fill redactObj.Fill = AnnSolidColorBrush.Create("Black"); // Add the object to the automation container _automation.Container.Children.Add(redactObj); }