Defines an audio annotation object.
Object Model
Syntax
Example
This example creates a new audio object at location 100, 200 and with dimensions of 400 x 600 and then adds it to a container.
Visual Basic | Copy Code |
---|
Private Sub AnnAudioObject_AnnAudioObject(ByVal container As AnnContainer, ByVal waveFileName As String)
Dim audio As AnnAudioObject = New AnnAudioObject()
audio.Bounds = New AnnRectangle(100, 200, 400, 600, AnnUnit.Pixel)
audio.FileName = waveFileName
container.Objects.Add(audio)
If (audio.CanPlay) Then
audio.Play()
End If
End Sub |
C# | Copy Code |
---|
private void AnnAudioObject_AnnAudioObject(AnnContainer container, string waveFileName) { AnnAudioObject audio = new AnnAudioObject(); audio.Bounds = new AnnRectangle(100, 200, 400, 600, AnnUnit.Pixel); audio.FileName = waveFileName; container.Objects.Add(audio); // play the audio to test it if((audio.CanPlay)) audio.Play(); } |
Remarks
Inheritance Hierarchy
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also