MCPcopy Create free account
hub / github.com/AccessKit/accesskit / GetText

Method GetText

platforms/windows/src/text.rs:526–534  ·  view source on GitHub ↗
(&self, _max_length: i32)

Source from the content-addressed store, hash-verified

524 }
525
526 fn GetText(&self, _max_length: i32) -> Result<BSTR> {
527 // The Microsoft docs imply that the provider isn't _required_
528 // to truncate text at the max length, so we just ignore it.
529 self.read(|range| {
530 let mut result = WideString::default();
531 range.write_text(&mut result).unwrap();
532 Ok(result.into())
533 })
534 }
535
536 fn Move(&self, unit: TextUnit, count: i32) -> Result<i32> {
537 self.write(|range| {

Callers

nothing calls this directly

Calls 2

readMethod · 0.80
write_textMethod · 0.80

Tested by

no test coverage detected