Aspose::Pdf::XImage::TrySetAlternativeText method

XImage::TrySetAlternativeText method

Sets alternative text for an XImage on the page.

bool Aspose::Pdf::XImage::TrySetAlternativeText(System::String alternativeText, System::SharedPtr<Aspose::Pdf::Page> page)
ParameterTypeDescription
alternativeTextSystem::StringThe alternative text to be specified.
pageSystem::SharedPtr<Aspose::Pdf::Page>Page where XImage is located.

ReturnValue

True if alternativeText for XImage is set. False if alternativeText for XImage not set.

Remarks

The method returns false in the following cases:* The XImage is not found on the specified page.

  • The XImage appears multiple times on the page with different structural elements, making it ambiguous which instance should receive the alternative text.

See Also