AmpAttributes Class

Represents attributes used by the amp-components.
Inheritance Hierarchy
SystemObject
  Aspose.Email.AmpAmpAttributes

Namespace:  Aspose.Email.Amp
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.2
Syntax
public class AmpAttributes

The AmpAttributes type exposes the following members.

Constructors
  NameDescription
Public methodAmpAttributes
Initializes a new instance of the AmpAttributes class
Properties
  NameDescription
Public propertyHeight
Height of element.
Public propertyHeigths
The value of this attribute is a sizes expression based on media expressions.
Public propertyIsFallback
Define that current element is fallback.
Public propertyIsNoloading
The noloading attribute indicates whether the "loading indicator" should be turned off for this element.
Public propertyIsPlaceHolder
The placeholder attribute indicates that the element marked with this attribute acts as a placeholder for the parent AMP element.
Public propertyLayout
AMP provides a set of layouts that specify how an AMP component behaves in the document layout.
Public propertyMedia
The value of media is a media query. If the query does not match, the element is not rendered and its resources and potentially its child resources will not be fetched. If the browser window changes size or orientation, the media queries are re-evaluated and elements are hidden and shown based on the new results.
Public propertyOn
The on attribute is used to install event handlers on elements.
Public propertySizes
The value of the AMP sizes attribute is a sizes expression that selects the defined size corresponding to the media query based on the current window size.
Public propertyWidth
Width of element.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToAmpHtml
Represents amp html version of attributes.
Public methodToHtml
Represents html version of attributes.
Public methodToString (Inherited from Object.)
See Also