public final class SoundAnnotation extends MarkupAnnotation
Represents a sound annotation that contains sound recorded from the computer�s microphone or imported from a file.
_disableUpdateAppearance
Constructor and Description |
---|
SoundAnnotation(Page page,
Rectangle rect,
String soundFile)
Creates new Sound annotation on the specified page.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
|
int |
getIcon()
Gets an icon to be used in displaying the annotation.
|
SoundData |
getSoundData()
Gets a sound object defining the sound to be played when the annotation is activated.
|
void |
setIcon(int value)
Sets an icon to be used in displaying the annotation.
|
void |
writeXfdf(com.aspose.ms.System.Xml.XmlWriter writer) |
getCreationDate, getCreationDateInternal, getInReplyTo, getOpacity, getPopup, getReplyType, getRichText, getSubject, getTitle, setInReplyTo, setOpacity, setPopup, setReplyType, setRichText, setSubject, setTitle
createAnnotation, flatten, getActiveState, getAlignment, getAppearance, getBorder, getCharacteristics, getColor, getContents, getEngineDict, getEngineObj, getFlags, getFullName, getHeight, getHorizontalAlignment_Annotation_New, getModified, getModifiedInternal, getName, getNormalAppearance, getPage, getPageIndex, getPageIndex, getRect, getStates, getWidth, initialize, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setRect, setWidth
deepClone, getMargin, isKeptWithNext, isKeptWithNext, setHorizontalAlignment, setMargin, setVerticalAlignment
public SoundAnnotation(Page page, Rectangle rect, String soundFile)
Creates new Sound annotation on the specified page.
page
- The document's page where annotation should be created.rect
- The annotation rectangle, defining the location of the annotation on the page.soundFile
- A sound file defining the sound to be played when the annotation is activated.public void writeXfdf(com.aspose.ms.System.Xml.XmlWriter writer)
public int getIcon()
Gets an icon to be used in displaying the annotation.
public void setIcon(int value)
Sets an icon to be used in displaying the annotation.
public SoundData getSoundData()
Gets a sound object defining the sound to be played when the annotation is activated.
public void accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
accept
in class Annotation
visitor
- Visitor object.Copyright © 2019 Aspose. All Rights Reserved.