Defines an audio annotation object.
Object Model
Syntax
XAML Object Element Usage | |
---|
<AnnAudioObject .../> |
XAML Object Element Usage | |
---|
<AnnAudioObject .../> |
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.Left = 100
audio.Top = 200
audio.Width = 400
audio.Height = 600
audio.FileName = waveFileName
container.Children.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.Left = 100; audio.Top = 200; audio.Width = 400; audio.Height = 600; audio.FileName = waveFileName; container.Children.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 Vista, and Windows Server 2003 family
See Also