Leadtools.Windows.Annotations Namespace : AnnAudioObject Class |
public class AnnAudioObject : AnnImageObject, IAnnHeader, IAnnImage, IAnnObject, IAnnPicture, IAnnRectangle
'Declaration Public Class AnnAudioObject Inherits AnnImageObject Implements IAnnHeader, IAnnImage, IAnnObject, IAnnPicture, IAnnRectangle
'Usage Dim instance As AnnAudioObject
public sealed class AnnAudioObject : IAnnHeader, IAnnImage, IAnnObject, IAnnPicture, IAnnRectangle
function Leadtools.Windows.Annotations.AnnAudioObject()
public ref class AnnAudioObject : public AnnImageObject, IAnnHeader, IAnnImage, IAnnObject, IAnnPicture, IAnnRectangle
The AnnAudioObject class inherits the the AnnImageObject class and accesses the common AnnImageObject.Picture property mentioned above through this inheritance.
For more information about the audio annotation object refer to AnnAudioObject for WPF. For more information about the automated annotation audio object, refer to WPF Annotation Objects - Automated Features and WPF Automated Annotations - Audio Tab.
'''<!-- 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.--> Private Sub AnnAudioObject_AnnAudioObject(ByVal container As AnnContainer, ByVal waveFileName As String) Dim audio As AnnAudioObject = New AnnAudioObject() audio.Rect = New Rect(100, 200, 400, 600) audio.Uri = waveFileName container.Children.Add(audio) ' play the audio to test it If ((audio.CanPlay)) Then audio.Play() End If End Sub
private void AnnAudioObject_AnnAudioObject(AnnContainer container, string waveFileName) { AnnAudioObject audio = new AnnAudioObject(); audio.Rect = new Rect(100, 200, 400, 600); audio.Uri = waveFileName; container.Children.Add(audio); // play the audio to test it if((audio.CanPlay)) audio.Play(); }
private void AnnAudioObject_AnnAudioObject(AnnContainer container, string waveFileName) { AnnAudioObject audio = new AnnAudioObject(); audio.Rect = new Rect(100, 200, 400, 600); audio.Uri = waveFileName; container.Children.Add(audio); // play the audio to test it if((audio.CanPlay)) audio.Play(); }
Private Sub AnnAudioObject_AnnAudioObject(ByVal container As AnnContainer, ByVal waveFileName As String)
Dim audio As AnnAudioObject = New AnnAudioObject()
audio.Rect = New Rect(100, 200, 400, 600)
audio.Uri = waveFileName
container.Children.Add(audio)
' play the audio to test it
If (audio.CanPlay) Then
audio.Play()
End If
End Sub
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2