MediaElement.IsMuted 属性

定义

获取或设置一个值,该值指示是否已静音。

public:
 property bool IsMuted { bool get(); void set(bool value); };
bool IsMuted();

void IsMuted(bool value);
public bool IsMuted { get; set; }
var boolean = mediaElement.isMuted;
mediaElement.isMuted = boolean;
Public Property IsMuted As Boolean
<MediaElement IsMuted="bool" .../>

属性值

Boolean

bool

如果音频已静音,则为 true;否则为 false。 默认值为 false

适用于