MediaElement.NaturalVideoHeight 属性

定义

获取与媒体关联的视频的高度。Gets the height of the video associated with the media.

public:
 property int NaturalVideoHeight { int get(); };
public int NaturalVideoHeight { get; }
member this.NaturalVideoHeight : int
Public ReadOnly Property NaturalVideoHeight As Integer

属性值

Int32

与媒体关联的视频的高度。The height of the video associated with the media. 音频文件将返回零。Audio files will return zero.

注解

NaturalVideoHeight 在引发事件之前,不准确 MediaOpenedNaturalVideoHeight is not accurate until the MediaOpened event has been raised.

适用于