NewLineType

NewLineType enum

Type of new line that will be used in generated document.

enum class NewLineType

Values

NameValueDescription
Windows0DOS & Windows OS new line - \r
Unix1Unix & Mac OS X new line -
Mac2Mac (OS 9) new line - \r

Remarks

Example

System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(u"pres.pptx");
System::SharedPtr<System::IO::Stream> stream = System::MakeObject<System::IO::FileStream>(u"doc.md", System::IO::FileMode::OpenOrCreate);

System::SharedPtr<MarkdownSaveOptions> markdownSaveOptions = System::MakeObject<MarkdownSaveOptions>();
markdownSaveOptions->set_ShowHiddenSlides(true);
markdownSaveOptions->set_ShowSlideNumber(true);
markdownSaveOptions->set_Flavor(Markdown::SaveOptions::Flavor::Github);
markdownSaveOptions->set_ExportType(Markdown::SaveOptions::MarkdownExportType::Sequential);
markdownSaveOptions->set_NewLineType(Markdown::SaveOptions::NewLineType::Windows);

System::ArrayPtr<int32_t> slideIndices = System::MakeArray<int32_t>({1, 2, 3, 4, 5, 6, 7, 8, 9});

pres->Save(stream, slideIndices, SaveFormat::Md, markdownSaveOptions);

See Also