Class BlockSearchResult
Result of block search operation in CSS parsing
Inheritance
Namespace: IronPdf
Assembly: IronPdf.dll
Syntax
public class BlockSearchResult : Object
BlockSearchResult provides the outcome of a block search operation within CSS parsing, indicating whether a specific block was found and where its opening brace is located. This class is essential when analyzing or manipulating CSS within a PDF document, as it helps pinpoint the exact location of style definitions.
The Found property confirms the presence of the searched block, while OpenBraceIndex gives the position of the opening brace, allowing developers to modify or extract specific CSS blocks efficiently. This functionality is particularly useful in scenarios where precise CSS manipulations are needed, such as adjusting styles dynamically or extracting specific style rules for further processing.
For a practical implementation, consider a scenario where a PDF document's CSS needs to be parsed to adjust styles based on user input. By leveraging BlockSearchResult, developers can quickly locate and modify the necessary CSS blocks without parsing the entire document manually.
To learn more about working with CSS in PDFs, visit the IronPDF documentation.
Constructors
BlockSearchResult()
Declaration
public BlockSearchResult()
Properties
Found
Whether a block was found
Declaration
public bool Found { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
OpenBraceIndex
Index of the opening brace if found
Declaration
public int OpenBraceIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |