Поделиться через


IXRTextBox::SetAcceptsReturn (Compact 2013)

3/28/2014

This method sets a value that determines whether this text box allows for and displays the new-line character or return character. These characters are used to divide text into multiple lines.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetAcceptsReturn(
    bool AcceptsReturn
) = 0; 

Parameters

  • AcceptsReturn
    [in] Boolean that determines whether this text box allows for and displays the new-line character or return character. Set this value to true if the text box allows for new-line characters; otherwise, set it to false.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

If you set AcceptsReturn to true, the text might be displayed differently because of text that contains new-line characters.

You can enable multiline text in a text-box control by calling this method.

.NET Framework Equivalent

System.Windows.Controls.TextBox.AcceptsReturn

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRTextBox
IXRTextBox::GetAcceptsReturn