Aspose::Email::Amp::AmpImage Class Reference

More...

Inherits Aspose::Email::Amp::AmpComponent.

Inherited by Aspose::Email::Amp::AmpAnim.

Public Member Functions

System::String get_Src () const
 Similar to the src attribute on the img tag. The value must be a URL that points to a publicly-cacheable image file More...
 
void set_Src (System::String value)
 Similar to the src attribute on the img tag. The value must be a URL that points to a publicly-cacheable image file More...
 
System::String get_Alt () const
 A string of alternate text, similar to the alt attribute on img. More...
 
void set_Alt (System::String value)
 A string of alternate text, similar to the alt attribute on img. More...
 
bool get_IsValid ()
 Indicates whether this image is valid of AmpImage. More...
 
System::String get_RequiredScript () override
 Required script that muct be added to head section. More...
 
 AmpImage (int32_t width, int32_t height)
 Create instance of AmpImage. More...
 
System::String ToAmpHtml () override
 Represents amp html version of component. More...
 
System::String ToHtml () override
 Represents html version of component. More...
 
- Public Member Functions inherited from Aspose::Email::Amp::AmpComponent
System::SharedPtr< AmpAttributesget_Attributes () const
 AMP provides a set of common attributes that are extended to many AMP components. More...
 
System::String get_Fallback () const
 A fallback is a convention that allows the element to communicate to the reader that the browser does not support the element. More...
 
void set_Fallback (System::String value)
 A fallback is a convention that allows the element to communicate to the reader that the browser does not support the element. More...
 
System::SharedPtr< AmpComponentget_Placeholder () const
 The element marked with the placeholder attribute acts as a placeholder for the parent AMP element. If specified, a placeholder element must be a direct child of the AMP element. More...
 
void set_Placeholder (System::SharedPtr< AmpComponent > value)
 The element marked with the placeholder attribute acts as a placeholder for the parent AMP element. If specified, a placeholder element must be a direct child of the AMP element. More...
 
 AmpComponent ()
 

Protected Attributes

int32_t defaultWidth
 Default width of image. More...
 
int32_t defaultHeight
 Default height of image. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ AmpImage()

Aspose::Email::Amp::AmpImage::AmpImage ( int32_t  width,
int32_t  height 
)

Create instance of AmpImage.

Parameters
widthwidth of AmpImage
heightheight of AmpImage

Member Function Documentation

◆ get_Alt()

System::String Aspose::Email::Amp::AmpImage::get_Alt ( ) const

A string of alternate text, similar to the alt attribute on img.

◆ get_IsValid()

bool Aspose::Email::Amp::AmpImage::get_IsValid ( )

Indicates whether this image is valid of AmpImage.

◆ get_RequiredScript()

System::String Aspose::Email::Amp::AmpImage::get_RequiredScript ( )
overridevirtual

Required script that muct be added to head section.

Implements Aspose::Email::Amp::AmpComponent.

◆ get_Src()

System::String Aspose::Email::Amp::AmpImage::get_Src ( ) const

Similar to the src attribute on the img tag. The value must be a URL that points to a publicly-cacheable image file

◆ set_Alt()

void Aspose::Email::Amp::AmpImage::set_Alt ( System::String  value)

A string of alternate text, similar to the alt attribute on img.

◆ set_Src()

void Aspose::Email::Amp::AmpImage::set_Src ( System::String  value)

Similar to the src attribute on the img tag. The value must be a URL that points to a publicly-cacheable image file

◆ ToAmpHtml()

System::String Aspose::Email::Amp::AmpImage::ToAmpHtml ( )
overridevirtual

Represents amp html version of component.

Returns

Implements Aspose::Email::Amp::AmpComponent.

◆ ToHtml()

System::String Aspose::Email::Amp::AmpImage::ToHtml ( )
overridevirtual

Represents html version of component.

Returns

Implements Aspose::Email::Amp::AmpComponent.

Member Data Documentation

◆ defaultHeight

int32_t Aspose::Email::Amp::AmpImage::defaultHeight
protected

Default height of image.

◆ defaultWidth

int32_t Aspose::Email::Amp::AmpImage::defaultWidth
protected

Default width of image.