# PdfRedactionRule

One serializable redaction search rule.

Class 

`OfficeIMO.Workflows`

**Namespace**

`OfficeIMO.Workflows`

**Assembly**

`OfficeIMO.Workflows`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[PdfRedactionWorkflowContracts.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/PdfRedactionWorkflowContracts.cs#L74)

**Modifiers**

sealed

One serializable redaction search rule.

## Inheritance

- object
- PdfRedactionRule

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [PdfRedactionRecipe.Rules](/api/workflows/officeimo-workflows-pdfredactionrecipe/#property-rules)

Filter members 

Show inherited

## Constructors

`public PdfRedactionRule()` [#](#constructor-ctor)

[PdfRedactionWorkflowContracts.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/PdfRedactionWorkflowContracts.cs#L74)

`Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string Name { get; set; }` [#](#property-name)

[PdfRedactionWorkflowContracts.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/PdfRedactionWorkflowContracts.cs#L65)

Stable non-sensitive identifier included in review evidence. Use letters, digits, dot, underscore, or hyphen.

`public PdfRedactionRuleKind Kind { get; set; }` [#](#property-kind)

[PdfRedactionWorkflowContracts.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/PdfRedactionWorkflowContracts.cs#L67)

Typed rule behavior.

`public string? Value { get; set; }` [#](#property-value)

[PdfRedactionWorkflowContracts.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/PdfRedactionWorkflowContracts.cs#L69)

Rule value. Required except for [PdfRedactionRuleKind.RedactAnnotations](/api/workflows/officeimo-workflows-pdfredactionrulekind/); omitted from result evidence.

`public PdfRedactionTextSelection TextSelection { get; set; }` [#](#property-textselection)

[PdfRedactionWorkflowContracts.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/PdfRedactionWorkflowContracts.cs#L72)

`JsonIgnore(Condition = 2)`

Native text selection policy. MatchedGlyphs requires a Literal or Regex rule and NativeOnly detection.

`public PdfRedactionContentScope ContentScope { get; set; }` [#](#property-contentscope)

[PdfRedactionWorkflowContracts.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/PdfRedactionWorkflowContracts.cs#L74)

Intersecting content removal policy for candidates produced by this rule.

`public PdfRedactionAppearanceMode AppearanceMode { get; set; }` [#](#property-appearancemode)

[PdfRedactionWorkflowContracts.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/PdfRedactionWorkflowContracts.cs#L76)

Visible privacy-appearance policy for candidates produced by this rule.

<!-- PowerForge markdown artifact sha256:5A6BD6F27DC1B25B40A6E953ACB0BDA1A358BCDF5CEF61E7FFD1B7270410C226 -->
