Table of Contents

Method TryGetSection

Namespace
PaintDotNet.FileTypes
Assembly
PaintDotNet.FileTypes.dll

TryGetSection(FileTypeMetadataSectionKind, out IReadOnlyFileTypeMetadataSection?)

Gets access to a read-only metadata section by its FileTypeMetadataSectionKind.

bool TryGetSection(FileTypeMetadataSectionKind sectionKind, out IReadOnlyFileTypeMetadataSection? section)

Parameters

sectionKind FileTypeMetadataSectionKind

The kind of metadata section to get.

section IReadOnlyFileTypeMetadataSection

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

Returns

bool

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