IAgentCommandEx::SetVoiceCaption
[Microsoft 에이전트는 Windows 7을 기준으로 더 이상 사용되지 않으며 이후 버전의 Windows에서는 사용할 수 없습니다.]
HRESULT SetVoiceCaption(
BSTR bszVoiceCaption // voice caption text
);
명령에 대해 표시되는 VoiceCaption 텍스트를 설정합니다.
- 작업이 성공했음을 나타내는 S_OK 반환합니다.
-
bszVoiceCaption
-
Command의 VoiceCaption 속성에 대한 텍스트를 지정하는 BSTR입니다.
Commands 컬렉션에서 Command 개체를 정의하고 해당 Voice 속성을 설정하는 경우 일반적으로 VoiceCaption 속성도 설정합니다. 이 텍스트는 클라이언트 애플리케이션이 활성화된 입력일 때 음성 명령 창에 표시됩니다. 이 속성을 설정하지 않으면 Caption 속성의 설정에 따라 표시되는 텍스트가 결정됩니다. VoiceCaption 또는 속성이 모두 설정되지 않으면 명령이 음성 명령 창에 표시되지 않습니다.
참고 항목
IAgentCommand::GetCaption, IAgentCommand::SetEnabled, IAgentCommand::SetVisible, IAgentCommand::SetVoice, IAgentCommandsEx::AddEx, IAgentCommandsEx::InsertEx, IAgentCommands::Add, IAgentCommands::Insert