Table of Contents

Method TryGetSection

Namespace
PaintDotNet.FileTypes
Assembly
PaintDotNet.FileTypes.dll

TryGetSection(FileTypeMetadataSectionKind, out IFileTypeMetadataSection?)

Gets access to a mutable metadata section by its FileTypeMetadataSectionKind.

bool TryGetSection(FileTypeMetadataSectionKind sectionKind, out IFileTypeMetadataSection? section)

Parameters

sectionKind FileTypeMetadataSectionKind

The kind of metadata section to get.

section IFileTypeMetadataSection

When this method returns, contains the metadata section if found; otherwise, null.

Returns

bool

true if a matching section was found; otherwise, false.