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
sectionKindFileTypeMetadataSectionKindThe kind of metadata section to get.
sectionIFileTypeMetadataSectionWhen this method returns, contains the metadata section if found; otherwise,
null.
Returns
- bool
trueif a matching section was found; otherwise,false.