// C++/WinRT v2.0.250303.1 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #ifndef WINRT_Windows_UI_Text_H #define WINRT_Windows_UI_Text_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.250303.1" #include "winrt/Windows.UI.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Storage.Streams.2.h" #include "winrt/impl/Windows.UI.2.h" #include "winrt/impl/Windows.UI.Text.2.h" namespace winrt::impl { template auto consume_Windows_UI_Text_IContentLinkInfo::Id() const { uint32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Id(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Id(&value)); } return value; } template auto consume_Windows_UI_Text_IContentLinkInfo::Id(uint32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Id(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Id(value)); } } template auto consume_Windows_UI_Text_IContentLinkInfo::DisplayText() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DisplayText(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DisplayText(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Text_IContentLinkInfo::DisplayText(param::hstring const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_DisplayText(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_DisplayText(*(void**)(&value))); } } template auto consume_Windows_UI_Text_IContentLinkInfo::SecondaryText() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SecondaryText(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SecondaryText(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Text_IContentLinkInfo::SecondaryText(param::hstring const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SecondaryText(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SecondaryText(*(void**)(&value))); } } template auto consume_Windows_UI_Text_IContentLinkInfo::Uri() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Uri(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Uri(&value)); } return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Text_IContentLinkInfo::Uri(winrt::Windows::Foundation::Uri const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Uri(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Uri(*(void**)(&value))); } } template auto consume_Windows_UI_Text_IContentLinkInfo::LinkContentKind() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_LinkContentKind(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LinkContentKind(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Text_IContentLinkInfo::LinkContentKind(param::hstring const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_LinkContentKind(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_LinkContentKind(*(void**)(&value))); } } template auto consume_Windows_UI_Text_IFontWeightsStatics::Black() const { winrt::Windows::UI::Text::FontWeight value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Black(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Black(put_abi(value))); } return value; } template auto consume_Windows_UI_Text_IFontWeightsStatics::Bold() const { winrt::Windows::UI::Text::FontWeight value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Bold(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Bold(put_abi(value))); } return value; } template auto consume_Windows_UI_Text_IFontWeightsStatics::ExtraBlack() const { winrt::Windows::UI::Text::FontWeight value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ExtraBlack(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExtraBlack(put_abi(value))); } return value; } template auto consume_Windows_UI_Text_IFontWeightsStatics::ExtraBold() const { winrt::Windows::UI::Text::FontWeight value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ExtraBold(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExtraBold(put_abi(value))); } return value; } template auto consume_Windows_UI_Text_IFontWeightsStatics::ExtraLight() const { winrt::Windows::UI::Text::FontWeight value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ExtraLight(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExtraLight(put_abi(value))); } return value; } template auto consume_Windows_UI_Text_IFontWeightsStatics::Light() const { winrt::Windows::UI::Text::FontWeight value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Light(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Light(put_abi(value))); } return value; } template auto consume_Windows_UI_Text_IFontWeightsStatics::Medium() const { winrt::Windows::UI::Text::FontWeight value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Medium(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Medium(put_abi(value))); } return value; } template auto consume_Windows_UI_Text_IFontWeightsStatics::Normal() const { winrt::Windows::UI::Text::FontWeight value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Normal(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Normal(put_abi(value))); } return value; } template auto consume_Windows_UI_Text_IFontWeightsStatics::SemiBold() const { winrt::Windows::UI::Text::FontWeight value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SemiBold(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SemiBold(put_abi(value))); } return value; } template auto consume_Windows_UI_Text_IFontWeightsStatics::SemiLight() const { winrt::Windows::UI::Text::FontWeight value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SemiLight(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SemiLight(put_abi(value))); } return value; } template auto consume_Windows_UI_Text_IFontWeightsStatics::Thin() const { winrt::Windows::UI::Text::FontWeight value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Thin(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Thin(put_abi(value))); } return value; } template auto consume_Windows_UI_Text_IRichEditTextRange::ContentLinkInfo() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ContentLinkInfo(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ContentLinkInfo(&value)); } return winrt::Windows::UI::Text::ContentLinkInfo{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Text_IRichEditTextRange::ContentLinkInfo(winrt::Windows::UI::Text::ContentLinkInfo const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ContentLinkInfo(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ContentLinkInfo(*(void**)(&value))); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::AllCaps() const { winrt::Windows::UI::Text::FormatEffect value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_AllCaps(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AllCaps(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::AllCaps(winrt::Windows::UI::Text::FormatEffect const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_AllCaps(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_AllCaps(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::BackgroundColor() const { winrt::Windows::UI::Color value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_BackgroundColor(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_BackgroundColor(put_abi(value))); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::BackgroundColor(winrt::Windows::UI::Color const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_BackgroundColor(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_BackgroundColor(impl::bind_in(value))); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::Bold() const { winrt::Windows::UI::Text::FormatEffect value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Bold(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Bold(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::Bold(winrt::Windows::UI::Text::FormatEffect const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Bold(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Bold(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::FontStretch() const { winrt::Windows::UI::Text::FontStretch value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_FontStretch(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_FontStretch(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::FontStretch(winrt::Windows::UI::Text::FontStretch const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_FontStretch(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_FontStretch(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::FontStyle() const { winrt::Windows::UI::Text::FontStyle value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_FontStyle(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_FontStyle(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::FontStyle(winrt::Windows::UI::Text::FontStyle const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_FontStyle(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_FontStyle(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::ForegroundColor() const { winrt::Windows::UI::Color value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ForegroundColor(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ForegroundColor(put_abi(value))); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::ForegroundColor(winrt::Windows::UI::Color const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ForegroundColor(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ForegroundColor(impl::bind_in(value))); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::Hidden() const { winrt::Windows::UI::Text::FormatEffect value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Hidden(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Hidden(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::Hidden(winrt::Windows::UI::Text::FormatEffect const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Hidden(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Hidden(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::Italic() const { winrt::Windows::UI::Text::FormatEffect value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Italic(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Italic(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::Italic(winrt::Windows::UI::Text::FormatEffect const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Italic(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Italic(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::Kerning() const { float value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Kerning(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Kerning(&value)); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::Kerning(float value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Kerning(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Kerning(value)); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::LanguageTag() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_LanguageTag(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LanguageTag(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Text_ITextCharacterFormat::LanguageTag(param::hstring const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_LanguageTag(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_LanguageTag(*(void**)(&value))); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::LinkType() const { winrt::Windows::UI::Text::LinkType value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_LinkType(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LinkType(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::Name() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Name(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Name(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Text_ITextCharacterFormat::Name(param::hstring const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Name(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Name(*(void**)(&value))); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::Outline() const { winrt::Windows::UI::Text::FormatEffect value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Outline(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Outline(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::Outline(winrt::Windows::UI::Text::FormatEffect const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Outline(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Outline(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::Position() const { float value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Position(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Position(&value)); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::Position(float value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Position(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Position(value)); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::ProtectedText() const { winrt::Windows::UI::Text::FormatEffect value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ProtectedText(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ProtectedText(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::ProtectedText(winrt::Windows::UI::Text::FormatEffect const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ProtectedText(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ProtectedText(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::Size() const { float value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Size(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Size(&value)); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::Size(float value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Size(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Size(value)); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::SmallCaps() const { winrt::Windows::UI::Text::FormatEffect value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SmallCaps(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SmallCaps(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::SmallCaps(winrt::Windows::UI::Text::FormatEffect const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SmallCaps(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SmallCaps(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::Spacing() const { float value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Spacing(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Spacing(&value)); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::Spacing(float value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Spacing(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Spacing(value)); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::Strikethrough() const { winrt::Windows::UI::Text::FormatEffect value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Strikethrough(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Strikethrough(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::Strikethrough(winrt::Windows::UI::Text::FormatEffect const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Strikethrough(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Strikethrough(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::Subscript() const { winrt::Windows::UI::Text::FormatEffect value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Subscript(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Subscript(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::Subscript(winrt::Windows::UI::Text::FormatEffect const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Subscript(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Subscript(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::Superscript() const { winrt::Windows::UI::Text::FormatEffect value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Superscript(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Superscript(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::Superscript(winrt::Windows::UI::Text::FormatEffect const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Superscript(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Superscript(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::TextScript() const { winrt::Windows::UI::Text::TextScript value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_TextScript(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_TextScript(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::TextScript(winrt::Windows::UI::Text::TextScript const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_TextScript(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_TextScript(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::Underline() const { winrt::Windows::UI::Text::UnderlineType value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Underline(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Underline(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::Underline(winrt::Windows::UI::Text::UnderlineType const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Underline(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Underline(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::Weight() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Weight(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Weight(&value)); } return value; } template auto consume_Windows_UI_Text_ITextCharacterFormat::Weight(int32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Weight(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Weight(value)); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::SetClone(winrt::Windows::UI::Text::ITextCharacterFormat const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetClone(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetClone(*(void**)(&value))); } } template auto consume_Windows_UI_Text_ITextCharacterFormat::GetClone() const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetClone(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetClone(&result)); } return winrt::Windows::UI::Text::ITextCharacterFormat{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Text_ITextCharacterFormat::IsEqual(winrt::Windows::UI::Text::ITextCharacterFormat const& format) const { bool result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->IsEqual(*(void**)(&format), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->IsEqual(*(void**)(&format), &result)); } return result; } template auto consume_Windows_UI_Text_ITextConstantsStatics::AutoColor() const { winrt::Windows::UI::Color value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_AutoColor(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AutoColor(put_abi(value))); } return value; } template auto consume_Windows_UI_Text_ITextConstantsStatics::MinUnitCount() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MinUnitCount(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MinUnitCount(&value)); } return value; } template auto consume_Windows_UI_Text_ITextConstantsStatics::MaxUnitCount() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MaxUnitCount(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MaxUnitCount(&value)); } return value; } template auto consume_Windows_UI_Text_ITextConstantsStatics::UndefinedColor() const { winrt::Windows::UI::Color value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_UndefinedColor(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_UndefinedColor(put_abi(value))); } return value; } template auto consume_Windows_UI_Text_ITextConstantsStatics::UndefinedFloatValue() const { float value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_UndefinedFloatValue(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_UndefinedFloatValue(&value)); } return value; } template auto consume_Windows_UI_Text_ITextConstantsStatics::UndefinedInt32Value() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_UndefinedInt32Value(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_UndefinedInt32Value(&value)); } return value; } template auto consume_Windows_UI_Text_ITextConstantsStatics::UndefinedFontStretch() const { winrt::Windows::UI::Text::FontStretch value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_UndefinedFontStretch(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_UndefinedFontStretch(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextConstantsStatics::UndefinedFontStyle() const { winrt::Windows::UI::Text::FontStyle value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_UndefinedFontStyle(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_UndefinedFontStyle(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextDocument::CaretType() const { winrt::Windows::UI::Text::CaretType value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CaretType(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CaretType(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextDocument::CaretType(winrt::Windows::UI::Text::CaretType const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CaretType(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CaretType(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextDocument::DefaultTabStop() const { float value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DefaultTabStop(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DefaultTabStop(&value)); } return value; } template auto consume_Windows_UI_Text_ITextDocument::DefaultTabStop(float value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_DefaultTabStop(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_DefaultTabStop(value)); } } template auto consume_Windows_UI_Text_ITextDocument::Selection() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Selection(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Selection(&value)); } return winrt::Windows::UI::Text::ITextSelection{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Text_ITextDocument::UndoLimit() const { uint32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_UndoLimit(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_UndoLimit(&value)); } return value; } template auto consume_Windows_UI_Text_ITextDocument::UndoLimit(uint32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_UndoLimit(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_UndoLimit(value)); } } template auto consume_Windows_UI_Text_ITextDocument::CanCopy() const { bool result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CanCopy(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CanCopy(&result)); } return result; } template auto consume_Windows_UI_Text_ITextDocument::CanPaste() const { bool result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CanPaste(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CanPaste(&result)); } return result; } template auto consume_Windows_UI_Text_ITextDocument::CanRedo() const { bool result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CanRedo(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CanRedo(&result)); } return result; } template auto consume_Windows_UI_Text_ITextDocument::CanUndo() const { bool result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CanUndo(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CanUndo(&result)); } return result; } template auto consume_Windows_UI_Text_ITextDocument::ApplyDisplayUpdates() const { int32_t result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ApplyDisplayUpdates(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ApplyDisplayUpdates(&result)); } return result; } template auto consume_Windows_UI_Text_ITextDocument::BatchDisplayUpdates() const { int32_t result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->BatchDisplayUpdates(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->BatchDisplayUpdates(&result)); } return result; } template auto consume_Windows_UI_Text_ITextDocument::BeginUndoGroup() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->BeginUndoGroup()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->BeginUndoGroup()); } } template auto consume_Windows_UI_Text_ITextDocument::EndUndoGroup() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->EndUndoGroup()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->EndUndoGroup()); } } template auto consume_Windows_UI_Text_ITextDocument::GetDefaultCharacterFormat() const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetDefaultCharacterFormat(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetDefaultCharacterFormat(&result)); } return winrt::Windows::UI::Text::ITextCharacterFormat{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Text_ITextDocument::GetDefaultParagraphFormat() const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetDefaultParagraphFormat(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetDefaultParagraphFormat(&result)); } return winrt::Windows::UI::Text::ITextParagraphFormat{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Text_ITextDocument::GetRange(int32_t startPosition, int32_t endPosition) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetRange(startPosition, endPosition, &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetRange(startPosition, endPosition, &result)); } return winrt::Windows::UI::Text::ITextRange{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Text_ITextDocument::GetRangeFromPoint(winrt::Windows::Foundation::Point const& point, winrt::Windows::UI::Text::PointOptions const& options) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetRangeFromPoint(impl::bind_in(point), static_cast(options), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetRangeFromPoint(impl::bind_in(point), static_cast(options), &result)); } return winrt::Windows::UI::Text::ITextRange{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Text_ITextDocument::GetText(winrt::Windows::UI::Text::TextGetOptions const& options, hstring& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetText(static_cast(options), impl::bind_out(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetText(static_cast(options), impl::bind_out(value))); } } template auto consume_Windows_UI_Text_ITextDocument::LoadFromStream(winrt::Windows::UI::Text::TextSetOptions const& options, winrt::Windows::Storage::Streams::IRandomAccessStream const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->LoadFromStream(static_cast(options), *(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->LoadFromStream(static_cast(options), *(void**)(&value))); } } template auto consume_Windows_UI_Text_ITextDocument::Redo() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Redo()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Redo()); } } template auto consume_Windows_UI_Text_ITextDocument::SaveToStream(winrt::Windows::UI::Text::TextGetOptions const& options, winrt::Windows::Storage::Streams::IRandomAccessStream const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SaveToStream(static_cast(options), *(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SaveToStream(static_cast(options), *(void**)(&value))); } } template auto consume_Windows_UI_Text_ITextDocument::SetDefaultCharacterFormat(winrt::Windows::UI::Text::ITextCharacterFormat const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetDefaultCharacterFormat(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetDefaultCharacterFormat(*(void**)(&value))); } } template auto consume_Windows_UI_Text_ITextDocument::SetDefaultParagraphFormat(winrt::Windows::UI::Text::ITextParagraphFormat const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetDefaultParagraphFormat(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetDefaultParagraphFormat(*(void**)(&value))); } } template auto consume_Windows_UI_Text_ITextDocument::SetText(winrt::Windows::UI::Text::TextSetOptions const& options, param::hstring const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetText(static_cast(options), *(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetText(static_cast(options), *(void**)(&value))); } } template auto consume_Windows_UI_Text_ITextDocument::Undo() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Undo()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Undo()); } } template auto consume_Windows_UI_Text_ITextDocument2::AlignmentIncludesTrailingWhitespace() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_AlignmentIncludesTrailingWhitespace(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AlignmentIncludesTrailingWhitespace(&value)); } return value; } template auto consume_Windows_UI_Text_ITextDocument2::AlignmentIncludesTrailingWhitespace(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_AlignmentIncludesTrailingWhitespace(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_AlignmentIncludesTrailingWhitespace(value)); } } template auto consume_Windows_UI_Text_ITextDocument2::IgnoreTrailingCharacterSpacing() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IgnoreTrailingCharacterSpacing(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IgnoreTrailingCharacterSpacing(&value)); } return value; } template auto consume_Windows_UI_Text_ITextDocument2::IgnoreTrailingCharacterSpacing(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_IgnoreTrailingCharacterSpacing(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_IgnoreTrailingCharacterSpacing(value)); } } template auto consume_Windows_UI_Text_ITextDocument3::ClearUndoRedoHistory() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ClearUndoRedoHistory()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ClearUndoRedoHistory()); } } template auto consume_Windows_UI_Text_ITextDocument4::SetMath(param::hstring const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetMath(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetMath(*(void**)(&value))); } } template auto consume_Windows_UI_Text_ITextDocument4::GetMath(hstring& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetMath(impl::bind_out(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetMath(impl::bind_out(value))); } } template auto consume_Windows_UI_Text_ITextDocument4::SetMathMode(winrt::Windows::UI::Text::RichEditMathMode const& mode) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetMathMode(static_cast(mode))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetMathMode(static_cast(mode))); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::Alignment() const { winrt::Windows::UI::Text::ParagraphAlignment value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Alignment(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Alignment(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::Alignment(winrt::Windows::UI::Text::ParagraphAlignment const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Alignment(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Alignment(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::FirstLineIndent() const { float value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_FirstLineIndent(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_FirstLineIndent(&value)); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::KeepTogether() const { winrt::Windows::UI::Text::FormatEffect value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_KeepTogether(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_KeepTogether(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::KeepTogether(winrt::Windows::UI::Text::FormatEffect const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_KeepTogether(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_KeepTogether(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::KeepWithNext() const { winrt::Windows::UI::Text::FormatEffect value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_KeepWithNext(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_KeepWithNext(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::KeepWithNext(winrt::Windows::UI::Text::FormatEffect const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_KeepWithNext(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_KeepWithNext(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::LeftIndent() const { float value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_LeftIndent(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LeftIndent(&value)); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::LineSpacing() const { float value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_LineSpacing(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LineSpacing(&value)); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::LineSpacingRule() const { winrt::Windows::UI::Text::LineSpacingRule value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_LineSpacingRule(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LineSpacingRule(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::ListAlignment() const { winrt::Windows::UI::Text::MarkerAlignment value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ListAlignment(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ListAlignment(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::ListAlignment(winrt::Windows::UI::Text::MarkerAlignment const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ListAlignment(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ListAlignment(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::ListLevelIndex() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ListLevelIndex(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ListLevelIndex(&value)); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::ListLevelIndex(int32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ListLevelIndex(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ListLevelIndex(value)); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::ListStart() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ListStart(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ListStart(&value)); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::ListStart(int32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ListStart(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ListStart(value)); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::ListStyle() const { winrt::Windows::UI::Text::MarkerStyle value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ListStyle(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ListStyle(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::ListStyle(winrt::Windows::UI::Text::MarkerStyle const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ListStyle(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ListStyle(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::ListTab() const { float value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ListTab(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ListTab(&value)); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::ListTab(float value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ListTab(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ListTab(value)); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::ListType() const { winrt::Windows::UI::Text::MarkerType value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ListType(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ListType(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::ListType(winrt::Windows::UI::Text::MarkerType const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ListType(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ListType(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::NoLineNumber() const { winrt::Windows::UI::Text::FormatEffect value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_NoLineNumber(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_NoLineNumber(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::NoLineNumber(winrt::Windows::UI::Text::FormatEffect const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_NoLineNumber(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_NoLineNumber(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::PageBreakBefore() const { winrt::Windows::UI::Text::FormatEffect value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PageBreakBefore(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PageBreakBefore(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::PageBreakBefore(winrt::Windows::UI::Text::FormatEffect const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_PageBreakBefore(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_PageBreakBefore(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::RightIndent() const { float value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_RightIndent(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RightIndent(&value)); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::RightIndent(float value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_RightIndent(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_RightIndent(value)); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::RightToLeft() const { winrt::Windows::UI::Text::FormatEffect value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_RightToLeft(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RightToLeft(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::RightToLeft(winrt::Windows::UI::Text::FormatEffect const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_RightToLeft(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_RightToLeft(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::Style() const { winrt::Windows::UI::Text::ParagraphStyle value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Style(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Style(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::Style(winrt::Windows::UI::Text::ParagraphStyle const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Style(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Style(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::SpaceAfter() const { float value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SpaceAfter(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SpaceAfter(&value)); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::SpaceAfter(float value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SpaceAfter(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SpaceAfter(value)); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::SpaceBefore() const { float value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SpaceBefore(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SpaceBefore(&value)); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::SpaceBefore(float value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SpaceBefore(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SpaceBefore(value)); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::WidowControl() const { winrt::Windows::UI::Text::FormatEffect value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WidowControl(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WidowControl(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::WidowControl(winrt::Windows::UI::Text::FormatEffect const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_WidowControl(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_WidowControl(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::TabCount() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_TabCount(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_TabCount(&value)); } return value; } template auto consume_Windows_UI_Text_ITextParagraphFormat::AddTab(float position, winrt::Windows::UI::Text::TabAlignment const& align, winrt::Windows::UI::Text::TabLeader const& leader) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddTab(position, static_cast(align), static_cast(leader))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddTab(position, static_cast(align), static_cast(leader))); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::ClearAllTabs() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ClearAllTabs()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ClearAllTabs()); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::DeleteTab(float position) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->DeleteTab(position)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->DeleteTab(position)); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::GetClone() const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetClone(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetClone(&result)); } return winrt::Windows::UI::Text::ITextParagraphFormat{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Text_ITextParagraphFormat::GetTab(int32_t index, float& position, winrt::Windows::UI::Text::TabAlignment& align, winrt::Windows::UI::Text::TabLeader& leader) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetTab(index, &position, reinterpret_cast(&align), reinterpret_cast(&leader))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetTab(index, &position, reinterpret_cast(&align), reinterpret_cast(&leader))); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::IsEqual(winrt::Windows::UI::Text::ITextParagraphFormat const& format) const { bool result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->IsEqual(*(void**)(&format), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->IsEqual(*(void**)(&format), &result)); } return result; } template auto consume_Windows_UI_Text_ITextParagraphFormat::SetClone(winrt::Windows::UI::Text::ITextParagraphFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetClone(*(void**)(&format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetClone(*(void**)(&format))); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::SetIndents(float start, float left, float right) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetIndents(start, left, right)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetIndents(start, left, right)); } } template auto consume_Windows_UI_Text_ITextParagraphFormat::SetLineSpacing(winrt::Windows::UI::Text::LineSpacingRule const& rule, float spacing) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetLineSpacing(static_cast(rule), spacing)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetLineSpacing(static_cast(rule), spacing)); } } template auto consume_Windows_UI_Text_ITextRange::Character() const { char16_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Character(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Character(&value)); } return value; } template auto consume_Windows_UI_Text_ITextRange::Character(char16_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Character(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Character(value)); } } template auto consume_Windows_UI_Text_ITextRange::CharacterFormat() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CharacterFormat(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CharacterFormat(&value)); } return winrt::Windows::UI::Text::ITextCharacterFormat{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Text_ITextRange::CharacterFormat(winrt::Windows::UI::Text::ITextCharacterFormat const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CharacterFormat(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CharacterFormat(*(void**)(&value))); } } template auto consume_Windows_UI_Text_ITextRange::FormattedText() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_FormattedText(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_FormattedText(&value)); } return winrt::Windows::UI::Text::ITextRange{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Text_ITextRange::FormattedText(winrt::Windows::UI::Text::ITextRange const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_FormattedText(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_FormattedText(*(void**)(&value))); } } template auto consume_Windows_UI_Text_ITextRange::EndPosition() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_EndPosition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_EndPosition(&value)); } return value; } template auto consume_Windows_UI_Text_ITextRange::EndPosition(int32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_EndPosition(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_EndPosition(value)); } } template auto consume_Windows_UI_Text_ITextRange::Gravity() const { winrt::Windows::UI::Text::RangeGravity value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Gravity(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Gravity(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextRange::Gravity(winrt::Windows::UI::Text::RangeGravity const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Gravity(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Gravity(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextRange::Length() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Length(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Length(&value)); } return value; } template auto consume_Windows_UI_Text_ITextRange::Link() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Link(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Link(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Text_ITextRange::Link(param::hstring const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Link(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Link(*(void**)(&value))); } } template auto consume_Windows_UI_Text_ITextRange::ParagraphFormat() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ParagraphFormat(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ParagraphFormat(&value)); } return winrt::Windows::UI::Text::ITextParagraphFormat{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Text_ITextRange::ParagraphFormat(winrt::Windows::UI::Text::ITextParagraphFormat const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ParagraphFormat(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ParagraphFormat(*(void**)(&value))); } } template auto consume_Windows_UI_Text_ITextRange::StartPosition() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_StartPosition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_StartPosition(&value)); } return value; } template auto consume_Windows_UI_Text_ITextRange::StartPosition(int32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_StartPosition(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_StartPosition(value)); } } template auto consume_Windows_UI_Text_ITextRange::StoryLength() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_StoryLength(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_StoryLength(&value)); } return value; } template auto consume_Windows_UI_Text_ITextRange::Text() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Text(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Text(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Text_ITextRange::Text(param::hstring const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); } } template auto consume_Windows_UI_Text_ITextRange::CanPaste(int32_t format) const { bool result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CanPaste(format, &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CanPaste(format, &result)); } return result; } template auto consume_Windows_UI_Text_ITextRange::ChangeCase(winrt::Windows::UI::Text::LetterCase const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ChangeCase(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ChangeCase(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextRange::Collapse(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Collapse(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Collapse(value)); } } template auto consume_Windows_UI_Text_ITextRange::Copy() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Copy()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Copy()); } } template auto consume_Windows_UI_Text_ITextRange::Cut() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Cut()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Cut()); } } template auto consume_Windows_UI_Text_ITextRange::Delete(winrt::Windows::UI::Text::TextRangeUnit const& unit, int32_t count) const { int32_t result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Delete(static_cast(unit), count, &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Delete(static_cast(unit), count, &result)); } return result; } template auto consume_Windows_UI_Text_ITextRange::EndOf(winrt::Windows::UI::Text::TextRangeUnit const& unit, bool extend) const { int32_t result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->EndOf(static_cast(unit), extend, &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->EndOf(static_cast(unit), extend, &result)); } return result; } template auto consume_Windows_UI_Text_ITextRange::Expand(winrt::Windows::UI::Text::TextRangeUnit const& unit) const { int32_t result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Expand(static_cast(unit), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Expand(static_cast(unit), &result)); } return result; } template auto consume_Windows_UI_Text_ITextRange::FindText(param::hstring const& value, int32_t scanLength, winrt::Windows::UI::Text::FindOptions const& options) const { int32_t result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->FindText(*(void**)(&value), scanLength, static_cast(options), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindText(*(void**)(&value), scanLength, static_cast(options), &result)); } return result; } template auto consume_Windows_UI_Text_ITextRange::GetCharacterUtf32(uint32_t& value, int32_t offset) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetCharacterUtf32(&value, offset)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetCharacterUtf32(&value, offset)); } } template auto consume_Windows_UI_Text_ITextRange::GetClone() const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetClone(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetClone(&result)); } return winrt::Windows::UI::Text::ITextRange{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Text_ITextRange::GetIndex(winrt::Windows::UI::Text::TextRangeUnit const& unit) const { int32_t result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetIndex(static_cast(unit), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetIndex(static_cast(unit), &result)); } return result; } template auto consume_Windows_UI_Text_ITextRange::GetPoint(winrt::Windows::UI::Text::HorizontalCharacterAlignment const& horizontalAlign, winrt::Windows::UI::Text::VerticalCharacterAlignment const& verticalAlign, winrt::Windows::UI::Text::PointOptions const& options, winrt::Windows::Foundation::Point& point) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetPoint(static_cast(horizontalAlign), static_cast(verticalAlign), static_cast(options), impl::bind_out(point))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetPoint(static_cast(horizontalAlign), static_cast(verticalAlign), static_cast(options), impl::bind_out(point))); } } template auto consume_Windows_UI_Text_ITextRange::GetRect(winrt::Windows::UI::Text::PointOptions const& options, winrt::Windows::Foundation::Rect& rect, int32_t& hit) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetRect(static_cast(options), impl::bind_out(rect), &hit)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetRect(static_cast(options), impl::bind_out(rect), &hit)); } } template auto consume_Windows_UI_Text_ITextRange::GetText(winrt::Windows::UI::Text::TextGetOptions const& options, hstring& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetText(static_cast(options), impl::bind_out(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetText(static_cast(options), impl::bind_out(value))); } } template auto consume_Windows_UI_Text_ITextRange::GetTextViaStream(winrt::Windows::UI::Text::TextGetOptions const& options, winrt::Windows::Storage::Streams::IRandomAccessStream const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetTextViaStream(static_cast(options), *(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetTextViaStream(static_cast(options), *(void**)(&value))); } } template auto consume_Windows_UI_Text_ITextRange::InRange(winrt::Windows::UI::Text::ITextRange const& range) const { bool result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->InRange(*(void**)(&range), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->InRange(*(void**)(&range), &result)); } return result; } template auto consume_Windows_UI_Text_ITextRange::InsertImage(int32_t width, int32_t height, int32_t ascent, winrt::Windows::UI::Text::VerticalCharacterAlignment const& verticalAlign, param::hstring const& alternateText, winrt::Windows::Storage::Streams::IRandomAccessStream const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->InsertImage(width, height, ascent, static_cast(verticalAlign), *(void**)(&alternateText), *(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->InsertImage(width, height, ascent, static_cast(verticalAlign), *(void**)(&alternateText), *(void**)(&value))); } } template auto consume_Windows_UI_Text_ITextRange::InStory(winrt::Windows::UI::Text::ITextRange const& range) const { bool result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->InStory(*(void**)(&range), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->InStory(*(void**)(&range), &result)); } return result; } template auto consume_Windows_UI_Text_ITextRange::IsEqual(winrt::Windows::UI::Text::ITextRange const& range) const { bool result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->IsEqual(*(void**)(&range), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->IsEqual(*(void**)(&range), &result)); } return result; } template auto consume_Windows_UI_Text_ITextRange::Move(winrt::Windows::UI::Text::TextRangeUnit const& unit, int32_t count) const { int32_t result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Move(static_cast(unit), count, &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Move(static_cast(unit), count, &result)); } return result; } template auto consume_Windows_UI_Text_ITextRange::MoveEnd(winrt::Windows::UI::Text::TextRangeUnit const& unit, int32_t count) const { int32_t result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->MoveEnd(static_cast(unit), count, &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->MoveEnd(static_cast(unit), count, &result)); } return result; } template auto consume_Windows_UI_Text_ITextRange::MoveStart(winrt::Windows::UI::Text::TextRangeUnit const& unit, int32_t count) const { int32_t result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->MoveStart(static_cast(unit), count, &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->MoveStart(static_cast(unit), count, &result)); } return result; } template auto consume_Windows_UI_Text_ITextRange::Paste(int32_t format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Paste(format)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Paste(format)); } } template auto consume_Windows_UI_Text_ITextRange::ScrollIntoView(winrt::Windows::UI::Text::PointOptions const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ScrollIntoView(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ScrollIntoView(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextRange::MatchSelection() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->MatchSelection()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->MatchSelection()); } } template auto consume_Windows_UI_Text_ITextRange::SetIndex(winrt::Windows::UI::Text::TextRangeUnit const& unit, int32_t index, bool extend) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetIndex(static_cast(unit), index, extend)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetIndex(static_cast(unit), index, extend)); } } template auto consume_Windows_UI_Text_ITextRange::SetPoint(winrt::Windows::Foundation::Point const& point, winrt::Windows::UI::Text::PointOptions const& options, bool extend) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetPoint(impl::bind_in(point), static_cast(options), extend)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetPoint(impl::bind_in(point), static_cast(options), extend)); } } template auto consume_Windows_UI_Text_ITextRange::SetRange(int32_t startPosition, int32_t endPosition) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetRange(startPosition, endPosition)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetRange(startPosition, endPosition)); } } template auto consume_Windows_UI_Text_ITextRange::SetText(winrt::Windows::UI::Text::TextSetOptions const& options, param::hstring const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetText(static_cast(options), *(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetText(static_cast(options), *(void**)(&value))); } } template auto consume_Windows_UI_Text_ITextRange::SetTextViaStream(winrt::Windows::UI::Text::TextSetOptions const& options, winrt::Windows::Storage::Streams::IRandomAccessStream const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetTextViaStream(static_cast(options), *(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetTextViaStream(static_cast(options), *(void**)(&value))); } } template auto consume_Windows_UI_Text_ITextRange::StartOf(winrt::Windows::UI::Text::TextRangeUnit const& unit, bool extend) const { int32_t result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->StartOf(static_cast(unit), extend, &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->StartOf(static_cast(unit), extend, &result)); } return result; } template auto consume_Windows_UI_Text_ITextSelection::Options() const { winrt::Windows::UI::Text::SelectionOptions value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Options(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Options(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextSelection::Options(winrt::Windows::UI::Text::SelectionOptions const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Options(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Options(static_cast(value))); } } template auto consume_Windows_UI_Text_ITextSelection::Type() const { winrt::Windows::UI::Text::SelectionType value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Type(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Type(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Text_ITextSelection::EndKey(winrt::Windows::UI::Text::TextRangeUnit const& unit, bool extend) const { int32_t result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->EndKey(static_cast(unit), extend, &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->EndKey(static_cast(unit), extend, &result)); } return result; } template auto consume_Windows_UI_Text_ITextSelection::HomeKey(winrt::Windows::UI::Text::TextRangeUnit const& unit, bool extend) const { int32_t result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->HomeKey(static_cast(unit), extend, &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->HomeKey(static_cast(unit), extend, &result)); } return result; } template auto consume_Windows_UI_Text_ITextSelection::MoveDown(winrt::Windows::UI::Text::TextRangeUnit const& unit, int32_t count, bool extend) const { int32_t result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->MoveDown(static_cast(unit), count, extend, &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->MoveDown(static_cast(unit), count, extend, &result)); } return result; } template auto consume_Windows_UI_Text_ITextSelection::MoveLeft(winrt::Windows::UI::Text::TextRangeUnit const& unit, int32_t count, bool extend) const { int32_t result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->MoveLeft(static_cast(unit), count, extend, &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->MoveLeft(static_cast(unit), count, extend, &result)); } return result; } template auto consume_Windows_UI_Text_ITextSelection::MoveRight(winrt::Windows::UI::Text::TextRangeUnit const& unit, int32_t count, bool extend) const { int32_t result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->MoveRight(static_cast(unit), count, extend, &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->MoveRight(static_cast(unit), count, extend, &result)); } return result; } template auto consume_Windows_UI_Text_ITextSelection::MoveUp(winrt::Windows::UI::Text::TextRangeUnit const& unit, int32_t count, bool extend) const { int32_t result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->MoveUp(static_cast(unit), count, extend, &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->MoveUp(static_cast(unit), count, extend, &result)); } return result; } template auto consume_Windows_UI_Text_ITextSelection::TypeText(param::hstring const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->TypeText(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->TypeText(*(void**)(&value))); } } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Id(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Id(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisplayText(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayText()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DisplayText(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DisplayText(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SecondaryText(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SecondaryText()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SecondaryText(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SecondaryText(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Uri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Uri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Uri(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Uri(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LinkContentKind(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LinkContentKind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LinkContentKind(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LinkContentKind(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Black(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Black()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Bold(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Bold()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExtraBlack(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExtraBlack()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExtraBold(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExtraBold()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExtraLight(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExtraLight()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Light(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Light()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Medium(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Medium()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Normal(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Normal()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SemiBold(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SemiBold()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SemiLight(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SemiLight()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Thin(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Thin()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ContentLinkInfo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContentLinkInfo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ContentLinkInfo(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ContentLinkInfo(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall get_AllCaps(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllCaps()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AllCaps(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AllCaps(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BackgroundColor(struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BackgroundColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_BackgroundColor(struct struct_Windows_UI_Color value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BackgroundColor(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Bold(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Bold()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Bold(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Bold(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FontStretch(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FontStretch()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FontStretch(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FontStretch(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FontStyle(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FontStyle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FontStyle(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FontStyle(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ForegroundColor(struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ForegroundColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ForegroundColor(struct struct_Windows_UI_Color value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ForegroundColor(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Hidden(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Hidden()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Hidden(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Hidden(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Italic(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Italic()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Italic(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Italic(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Kerning(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Kerning()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Kerning(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Kerning(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LanguageTag(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LanguageTag()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LanguageTag(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LanguageTag(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LinkType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LinkType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Name(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Name()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Name(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Name(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Outline(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Outline()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Outline(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Outline(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Position(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Position()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Position(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Position(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProtectedText(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProtectedText()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ProtectedText(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ProtectedText(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Size(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Size()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Size(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Size(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SmallCaps(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SmallCaps()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SmallCaps(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SmallCaps(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Spacing(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Spacing()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Spacing(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Spacing(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Strikethrough(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Strikethrough()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Strikethrough(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Strikethrough(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Subscript(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Subscript()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Subscript(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Subscript(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Superscript(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Superscript()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Superscript(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Superscript(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TextScript(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TextScript()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TextScript(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TextScript(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Underline(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Underline()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Underline(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Underline(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Weight(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Weight()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Weight(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Weight(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetClone(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetClone(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetClone(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetClone()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsEqual(void* format, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsEqual(*reinterpret_cast(&format))); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AutoColor(struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AutoColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MinUnitCount(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinUnitCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxUnitCount(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxUnitCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UndefinedColor(struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UndefinedColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UndefinedFloatValue(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UndefinedFloatValue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UndefinedInt32Value(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UndefinedInt32Value()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UndefinedFontStretch(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UndefinedFontStretch()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UndefinedFontStyle(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UndefinedFontStyle()); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall get_CaretType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CaretType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CaretType(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CaretType(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DefaultTabStop(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DefaultTabStop()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DefaultTabStop(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DefaultTabStop(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Selection(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Selection()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UndoLimit(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UndoLimit()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_UndoLimit(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UndoLimit(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CanCopy(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CanCopy()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CanPaste(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CanPaste()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CanRedo(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CanRedo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CanUndo(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CanUndo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ApplyDisplayUpdates(int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ApplyDisplayUpdates()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall BatchDisplayUpdates(int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().BatchDisplayUpdates()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall BeginUndoGroup() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BeginUndoGroup(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall EndUndoGroup() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().EndUndoGroup(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDefaultCharacterFormat(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetDefaultCharacterFormat()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDefaultParagraphFormat(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetDefaultParagraphFormat()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetRange(int32_t startPosition, int32_t endPosition, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetRange(startPosition, endPosition)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetRangeFromPoint(winrt::Windows::Foundation::Point point, uint32_t options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetRangeFromPoint(*reinterpret_cast(&point), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetText(uint32_t options, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); this->shim().GetText(*reinterpret_cast(&options), *reinterpret_cast(value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LoadFromStream(uint32_t options, void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LoadFromStream(*reinterpret_cast(&options), *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Redo() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Redo(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SaveToStream(uint32_t options, void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SaveToStream(*reinterpret_cast(&options), *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetDefaultCharacterFormat(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetDefaultCharacterFormat(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetDefaultParagraphFormat(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetDefaultParagraphFormat(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetText(uint32_t options, void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetText(*reinterpret_cast(&options), *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Undo() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Undo(); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AlignmentIncludesTrailingWhitespace(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AlignmentIncludesTrailingWhitespace()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AlignmentIncludesTrailingWhitespace(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AlignmentIncludesTrailingWhitespace(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IgnoreTrailingCharacterSpacing(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IgnoreTrailingCharacterSpacing()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IgnoreTrailingCharacterSpacing(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IgnoreTrailingCharacterSpacing(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ClearUndoRedoHistory() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ClearUndoRedoHistory(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetMath(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetMath(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetMath(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); this->shim().GetMath(*reinterpret_cast(value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetMathMode(int32_t mode) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetMathMode(*reinterpret_cast(&mode)); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall get_Alignment(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Alignment()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Alignment(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Alignment(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FirstLineIndent(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FirstLineIndent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KeepTogether(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KeepTogether()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_KeepTogether(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().KeepTogether(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KeepWithNext(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KeepWithNext()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_KeepWithNext(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().KeepWithNext(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LeftIndent(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LeftIndent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LineSpacing(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LineSpacing()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LineSpacingRule(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LineSpacingRule()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ListAlignment(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ListAlignment()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ListAlignment(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ListAlignment(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ListLevelIndex(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ListLevelIndex()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ListLevelIndex(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ListLevelIndex(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ListStart(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ListStart()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ListStart(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ListStart(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ListStyle(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ListStyle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ListStyle(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ListStyle(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ListTab(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ListTab()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ListTab(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ListTab(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ListType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ListType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ListType(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ListType(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NoLineNumber(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NoLineNumber()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_NoLineNumber(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NoLineNumber(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PageBreakBefore(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PageBreakBefore()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PageBreakBefore(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PageBreakBefore(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RightIndent(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RightIndent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RightIndent(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RightIndent(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RightToLeft(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RightToLeft()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RightToLeft(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RightToLeft(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Style(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Style()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Style(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Style(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SpaceAfter(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SpaceAfter()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SpaceAfter(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SpaceAfter(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SpaceBefore(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SpaceBefore()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SpaceBefore(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SpaceBefore(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WidowControl(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WidowControl()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_WidowControl(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().WidowControl(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TabCount(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TabCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddTab(float position, int32_t align, int32_t leader) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddTab(position, *reinterpret_cast(&align), *reinterpret_cast(&leader)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ClearAllTabs() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ClearAllTabs(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DeleteTab(float position) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DeleteTab(position); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetClone(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetClone()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetTab(int32_t index, float* position, int32_t* align, int32_t* leader) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().GetTab(index, *position, *reinterpret_cast(align), *reinterpret_cast(leader)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsEqual(void* format, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsEqual(*reinterpret_cast(&format))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetClone(void* format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetClone(*reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetIndents(float start, float left, float right) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetIndents(start, left, right); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetLineSpacing(int32_t rule, float spacing) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetLineSpacing(*reinterpret_cast(&rule), spacing); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_Character(char16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Character()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Character(char16_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Character(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CharacterFormat(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CharacterFormat()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CharacterFormat(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CharacterFormat(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FormattedText(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FormattedText()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FormattedText(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FormattedText(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_EndPosition(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EndPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_EndPosition(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().EndPosition(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Gravity(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Gravity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Gravity(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Gravity(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Length(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Length()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Link(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Link()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Link(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Link(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ParagraphFormat(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ParagraphFormat()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ParagraphFormat(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ParagraphFormat(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StartPosition(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StartPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_StartPosition(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartPosition(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StoryLength(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StoryLength()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Text(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Text()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Text(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Text(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CanPaste(int32_t format, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CanPaste(format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ChangeCase(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ChangeCase(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Collapse(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Collapse(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Copy() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Copy(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Cut() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Cut(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Delete(int32_t unit, int32_t count, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Delete(*reinterpret_cast(&unit), count)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall EndOf(int32_t unit, bool extend, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().EndOf(*reinterpret_cast(&unit), extend)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Expand(int32_t unit, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Expand(*reinterpret_cast(&unit))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindText(void* value, int32_t scanLength, uint32_t options, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FindText(*reinterpret_cast(&value), scanLength, *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetCharacterUtf32(uint32_t* value, int32_t offset) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().GetCharacterUtf32(*value, offset); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetClone(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetClone()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetIndex(int32_t unit, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetIndex(*reinterpret_cast(&unit))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetPoint(int32_t horizontalAlign, int32_t verticalAlign, uint32_t options, winrt::Windows::Foundation::Point* point) noexcept final try { zero_abi(point); typename D::abi_guard guard(this->shim()); this->shim().GetPoint(*reinterpret_cast(&horizontalAlign), *reinterpret_cast(&verticalAlign), *reinterpret_cast(&options), *reinterpret_cast(point)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetRect(uint32_t options, winrt::Windows::Foundation::Rect* rect, int32_t* hit) noexcept final try { zero_abi(rect); typename D::abi_guard guard(this->shim()); this->shim().GetRect(*reinterpret_cast(&options), *reinterpret_cast(rect), *hit); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetText(uint32_t options, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); this->shim().GetText(*reinterpret_cast(&options), *reinterpret_cast(value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetTextViaStream(uint32_t options, void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().GetTextViaStream(*reinterpret_cast(&options), *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall InRange(void* range, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().InRange(*reinterpret_cast(&range))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall InsertImage(int32_t width, int32_t height, int32_t ascent, int32_t verticalAlign, void* alternateText, void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().InsertImage(width, height, ascent, *reinterpret_cast(&verticalAlign), *reinterpret_cast(&alternateText), *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall InStory(void* range, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().InStory(*reinterpret_cast(&range))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsEqual(void* range, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsEqual(*reinterpret_cast(&range))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Move(int32_t unit, int32_t count, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Move(*reinterpret_cast(&unit), count)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MoveEnd(int32_t unit, int32_t count, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().MoveEnd(*reinterpret_cast(&unit), count)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MoveStart(int32_t unit, int32_t count, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().MoveStart(*reinterpret_cast(&unit), count)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Paste(int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Paste(format); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ScrollIntoView(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ScrollIntoView(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MatchSelection() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MatchSelection(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetIndex(int32_t unit, int32_t index, bool extend) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetIndex(*reinterpret_cast(&unit), index, extend); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetPoint(winrt::Windows::Foundation::Point point, uint32_t options, bool extend) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetPoint(*reinterpret_cast(&point), *reinterpret_cast(&options), extend); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetRange(int32_t startPosition, int32_t endPosition) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetRange(startPosition, endPosition); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetText(uint32_t options, void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetText(*reinterpret_cast(&options), *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetTextViaStream(uint32_t options, void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetTextViaStream(*reinterpret_cast(&options), *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartOf(int32_t unit, bool extend, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().StartOf(*reinterpret_cast(&unit), extend)); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_Options(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Options()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Options(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Options(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Type(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Type()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall EndKey(int32_t unit, bool extend, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().EndKey(*reinterpret_cast(&unit), extend)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall HomeKey(int32_t unit, bool extend, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().HomeKey(*reinterpret_cast(&unit), extend)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MoveDown(int32_t unit, int32_t count, bool extend, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().MoveDown(*reinterpret_cast(&unit), count, extend)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MoveLeft(int32_t unit, int32_t count, bool extend, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().MoveLeft(*reinterpret_cast(&unit), count, extend)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MoveRight(int32_t unit, int32_t count, bool extend, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().MoveRight(*reinterpret_cast(&unit), count, extend)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MoveUp(int32_t unit, int32_t count, bool extend, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().MoveUp(*reinterpret_cast(&unit), count, extend)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TypeText(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TypeText(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; } WINRT_EXPORT namespace winrt::Windows::UI::Text { constexpr auto operator|(FindOptions const left, FindOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(FindOptions& left, FindOptions const right) noexcept { left = left | right; return left; } constexpr auto operator&(FindOptions const left, FindOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(FindOptions& left, FindOptions const right) noexcept { left = left & right; return left; } constexpr auto operator~(FindOptions const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(FindOptions const left, FindOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(FindOptions& left, FindOptions const right) noexcept { left = left ^ right; return left; } constexpr auto operator|(PointOptions const left, PointOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(PointOptions& left, PointOptions const right) noexcept { left = left | right; return left; } constexpr auto operator&(PointOptions const left, PointOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(PointOptions& left, PointOptions const right) noexcept { left = left & right; return left; } constexpr auto operator~(PointOptions const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(PointOptions const left, PointOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(PointOptions& left, PointOptions const right) noexcept { left = left ^ right; return left; } constexpr auto operator|(SelectionOptions const left, SelectionOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(SelectionOptions& left, SelectionOptions const right) noexcept { left = left | right; return left; } constexpr auto operator&(SelectionOptions const left, SelectionOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(SelectionOptions& left, SelectionOptions const right) noexcept { left = left & right; return left; } constexpr auto operator~(SelectionOptions const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(SelectionOptions const left, SelectionOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(SelectionOptions& left, SelectionOptions const right) noexcept { left = left ^ right; return left; } constexpr auto operator|(TextDecorations const left, TextDecorations const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(TextDecorations& left, TextDecorations const right) noexcept { left = left | right; return left; } constexpr auto operator&(TextDecorations const left, TextDecorations const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(TextDecorations& left, TextDecorations const right) noexcept { left = left & right; return left; } constexpr auto operator~(TextDecorations const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(TextDecorations const left, TextDecorations const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(TextDecorations& left, TextDecorations const right) noexcept { left = left ^ right; return left; } constexpr auto operator|(TextGetOptions const left, TextGetOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(TextGetOptions& left, TextGetOptions const right) noexcept { left = left | right; return left; } constexpr auto operator&(TextGetOptions const left, TextGetOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(TextGetOptions& left, TextGetOptions const right) noexcept { left = left & right; return left; } constexpr auto operator~(TextGetOptions const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(TextGetOptions const left, TextGetOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(TextGetOptions& left, TextGetOptions const right) noexcept { left = left ^ right; return left; } constexpr auto operator|(TextSetOptions const left, TextSetOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(TextSetOptions& left, TextSetOptions const right) noexcept { left = left | right; return left; } constexpr auto operator&(TextSetOptions const left, TextSetOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(TextSetOptions& left, TextSetOptions const right) noexcept { left = left & right; return left; } constexpr auto operator~(TextSetOptions const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(TextSetOptions const left, TextSetOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(TextSetOptions& left, TextSetOptions const right) noexcept { left = left ^ right; return left; } inline ContentLinkInfo::ContentLinkInfo() : ContentLinkInfo(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto FontWeights::Black() { return impl::call_factory_cast([](IFontWeightsStatics const& f) { return f.Black(); }); } inline auto FontWeights::Bold() { return impl::call_factory_cast([](IFontWeightsStatics const& f) { return f.Bold(); }); } inline auto FontWeights::ExtraBlack() { return impl::call_factory_cast([](IFontWeightsStatics const& f) { return f.ExtraBlack(); }); } inline auto FontWeights::ExtraBold() { return impl::call_factory_cast([](IFontWeightsStatics const& f) { return f.ExtraBold(); }); } inline auto FontWeights::ExtraLight() { return impl::call_factory_cast([](IFontWeightsStatics const& f) { return f.ExtraLight(); }); } inline auto FontWeights::Light() { return impl::call_factory_cast([](IFontWeightsStatics const& f) { return f.Light(); }); } inline auto FontWeights::Medium() { return impl::call_factory_cast([](IFontWeightsStatics const& f) { return f.Medium(); }); } inline auto FontWeights::Normal() { return impl::call_factory_cast([](IFontWeightsStatics const& f) { return f.Normal(); }); } inline auto FontWeights::SemiBold() { return impl::call_factory_cast([](IFontWeightsStatics const& f) { return f.SemiBold(); }); } inline auto FontWeights::SemiLight() { return impl::call_factory_cast([](IFontWeightsStatics const& f) { return f.SemiLight(); }); } inline auto FontWeights::Thin() { return impl::call_factory_cast([](IFontWeightsStatics const& f) { return f.Thin(); }); } inline auto TextConstants::AutoColor() { return impl::call_factory_cast([](ITextConstantsStatics const& f) { return f.AutoColor(); }); } inline auto TextConstants::MinUnitCount() { return impl::call_factory_cast([](ITextConstantsStatics const& f) { return f.MinUnitCount(); }); } inline auto TextConstants::MaxUnitCount() { return impl::call_factory_cast([](ITextConstantsStatics const& f) { return f.MaxUnitCount(); }); } inline auto TextConstants::UndefinedColor() { return impl::call_factory_cast([](ITextConstantsStatics const& f) { return f.UndefinedColor(); }); } inline auto TextConstants::UndefinedFloatValue() { return impl::call_factory_cast([](ITextConstantsStatics const& f) { return f.UndefinedFloatValue(); }); } inline auto TextConstants::UndefinedInt32Value() { return impl::call_factory_cast([](ITextConstantsStatics const& f) { return f.UndefinedInt32Value(); }); } inline auto TextConstants::UndefinedFontStretch() { return impl::call_factory_cast([](ITextConstantsStatics const& f) { return f.UndefinedFontStretch(); }); } inline auto TextConstants::UndefinedFontStyle() { return impl::call_factory_cast([](ITextConstantsStatics const& f) { return f.UndefinedFontStyle(); }); } } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif