RichTextBlockOverflow Class

서식 있는 텍스트 표시 오버플로 컨테이너를 나타냅니다. 이 요소에는 직접 콘텐츠를 사용할 수 없습니다. RichTextBlockOverflow의 유일한 용도는 RichTextBlock의 범위 또는 다른 RichTextBlockOverflow 요소에 맞지 않는 텍스트 내용을 표시하는 것입니다.

상속

Object
  DependencyObject
    UIElement
      FrameworkElement
        RichTextBlockOverflow

구문


public sealed class RichTextBlockOverflow : FrameworkElement


<RichTextBlockOverflow .../>

특성

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

멤버

RichTextBlockOverflow클래스에는 다음과 같은 형식의 멤버가 있습니다.

생성자

RichTextBlockOverflow클래스에는 다음과 같은 생성자가 있습니다.

생성자Description
RichTextBlockOverflow Initializes a new instance of the RichTextBlockOverflow class.

 

이벤트

RichTextBlockOverflow클래스에는 다음과 같은 이벤트가 있습니다.

이벤트Description
DataContextChanged Occurs when the value of the FrameworkElement.DataContext property changes. (다음에서 상속됨 FrameworkElement)
DoubleTapped Occurs when an otherwise unhandled DoubleTap interaction occurs over the hit test area of this element. (다음에서 상속됨 UIElement)
DragEnter Occurs when the input system reports an underlying drag event with this element as the target. (다음에서 상속됨 UIElement)
DragLeave Occurs when the input system reports an underlying drag event with this element as the origin. (다음에서 상속됨 UIElement)
DragOver Occurs when the input system reports an underlying drag event with this element as the potential drop target. (다음에서 상속됨 UIElement)
Drop Occurs when the input system reports an underlying drop event with this element as the drop target. (다음에서 상속됨 UIElement)
GotFocus Occurs when a UIElement receives focus. (다음에서 상속됨 UIElement)
Holding Occurs when an otherwise unhandled Hold interaction occurs over the hit test area of this element. (다음에서 상속됨 UIElement)
KeyDown Occurs when a keyboard key is pressed while the UIElement has focus. (다음에서 상속됨 UIElement)
KeyUp Occurs when a keyboard key is released while the UIElement has focus. (다음에서 상속됨 UIElement)
LayoutUpdated Occurs when the layout of the visual tree changes, due to layout-relevant properties changing value or some other action that refreshes the layout. (다음에서 상속됨 FrameworkElement)
Loaded Occurs when a FrameworkElement has been constructed and added to the object tree, and is ready for interaction. (다음에서 상속됨 FrameworkElement)
LostFocus Occurs when a UIElement loses focus. (다음에서 상속됨 UIElement)
ManipulationCompleted Occurs when a manipulation on the UIElement is complete. (다음에서 상속됨 UIElement)
ManipulationDelta Occurs when the input device changes position during a manipulation. (다음에서 상속됨 UIElement)
ManipulationInertiaStarting Occurs when the input device loses contact with the UIElement object during a manipulation and inertia begins. (다음에서 상속됨 UIElement)
ManipulationStarted Occurs when an input device begins a manipulation on the UIElement. (다음에서 상속됨 UIElement)
ManipulationStarting Occurs when the manipulation processor is first created. (다음에서 상속됨 UIElement)
PointerCanceled Occurs when a pointer that made contact abnormally loses contact. (다음에서 상속됨 UIElement)
PointerCaptureLost Occurs when pointer capture previously held by this element moves to another element or elsewhere. (다음에서 상속됨 UIElement)
PointerEntered Occurs when a pointer enters the hit test area of this element. (다음에서 상속됨 UIElement)
PointerExited Occurs when a pointer leaves the hit test area of this element. (다음에서 상속됨 UIElement)
PointerMoved Occurs when a pointer moves while the pointer remains within the hit test area of this element. (다음에서 상속됨 UIElement)
PointerPressed Occurs when the pointer device initiates a Press action within this element. (다음에서 상속됨 UIElement)
PointerReleased Occurs when the pointer device that previously initiated a Press action is released, while within this element. (다음에서 상속됨 UIElement)
PointerWheelChanged Occurs when the delta value of a pointer wheel changes. (다음에서 상속됨 UIElement)
RightTapped Occurs when a right-tap input stimulus happens while the pointer is over the element. (다음에서 상속됨 UIElement)
SizeChanged Occurs when either the ActualHeight or the ActualWidth property changes value on a FrameworkElement. (다음에서 상속됨 FrameworkElement)
Tapped Occurs when an otherwise unhandled Tap interaction occurs over the hit test area of this element. (다음에서 상속됨 UIElement)
Unloaded Occurs when this object is no longer connected to the main object tree. (다음에서 상속됨 FrameworkElement)

 

메서드

The RichTextBlockOverflow 클래스 - 이러한 메서드가 있습니다. 다음 위치의 메서드도 상속합니다. Object 클래스.

메서드Description
AddHandler Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element. Specify handledEventsToo as true to have the provided handler be invoked even if the event is handled elsewhere. (다음에서 상속됨 UIElement)
Arrange Positions child objects and determines a size for a UIElement. Parent objects that implement custom layout for their child elements should call this method from their layout override implementations to form a recursive layout update. (다음에서 상속됨 UIElement)
ArrangeOverride Provides the behavior for the Arrange pass of layout. Classes can override this method to define their own Arrange pass behavior. (다음에서 상속됨 FrameworkElement)
CancelDirectManipulations Cancels ongoing direct manipulation processing (system-defined panning/zooming) on any ScrollViewer parent that contains the current UIElement. (다음에서 상속됨 UIElement)
CapturePointer Sets pointer capture to a UIElement. Once captured, only the element that has capture will fire pointer-related events. (다음에서 상속됨 UIElement)
ClearValue Clears the local value of a dependency property. (다음에서 상속됨 DependencyObject)
FindName Retrieves an object that has the specified identifier name. (다음에서 상속됨 FrameworkElement)
FindSubElementsForTouchTargeting Enables a UIElement subclass to expose child elements that assist with resolving touch targeting. (다음에서 상속됨 UIElement)
Focus Focuses the RichTextBlockOverflow, as if it were a conventionally focusable control.
GetAnimationBaseValue Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (다음에서 상속됨 DependencyObject)
GetBindingExpression Returns the BindingExpression that represents the binding on the specified property. (다음에서 상속됨 FrameworkElement)
GetPositionFromPoint Returns a TextPointer text reference from a RichTextBlockOverflow by hit-testing a specific Point within the text display area.
GetValue Returns the current effective value of a dependency property from a DependencyObject. (다음에서 상속됨 DependencyObject)
GoToElementStateCore When implemented in a derived class, enables per-state construction of a visual tree for a control template in code, rather than by loading XAML for all states at control startup. (다음에서 상속됨 FrameworkElement)
InvalidateArrange Invalidates the arrange state (layout) for a UIElement. After the invalidation, the UIElement will have its layout updated, which will occur asynchronously. (다음에서 상속됨 UIElement)
InvalidateMeasure Invalidates the measurement state (layout) for a UIElement. (다음에서 상속됨 UIElement)
Measure Updates the DesiredSize of a UIElement. Typically, objects that implement custom layout for their layout children call this method from their own MeasureOverride implementations to form a recursive layout update. (다음에서 상속됨 UIElement)
MeasureOverride Provides the behavior for the Measure pass of the layout cycle. Classes can override this method to define their own Measure pass behavior. (다음에서 상속됨 FrameworkElement)
OnApplyTemplate Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class. (다음에서 상속됨 FrameworkElement)
OnCreateAutomationPeer When implemented in a derived class, returns class-specific AutomationPeer implementations for the Microsoft UI Automation infrastructure. (다음에서 상속됨 UIElement)
OnDisconnectVisualChildren Override this method to implement how layout and logic should behave when items are removed from a class-specific content or children property. (다음에서 상속됨 UIElement)
ReadLocalValue Returns the local value of a dependency property, if a local value is set. (다음에서 상속됨 DependencyObject)
ReleasePointerCapture Releases pointer captures for capture of one specific pointer by this UIElement. (다음에서 상속됨 UIElement)
ReleasePointerCaptures Releases all pointer captures held by this element. (다음에서 상속됨 UIElement)
RemoveHandler Removes the specified routed event handler from this UIElement. Typically the handler in question was added by AddHandler. (다음에서 상속됨 UIElement)
SetBinding Attaches a binding to a FrameworkElement, using the provided binding object. (다음에서 상속됨 FrameworkElement)
SetValue Sets the local value of a dependency property on a DependencyObject. (다음에서 상속됨 DependencyObject)
TransformToVisual Returns a transform object that can be used to transform coordinates from the UIElement to the specified object. (다음에서 상속됨 UIElement)
UpdateLayout Ensures that all positions of child objects of a UIElement are properly updated for layout. (다음에서 상속됨 UIElement)

 

속성

RichTextBlockOverflow클래스 - 이러한 속성이 있습니다.

속성사용 권한Description

ActualHeight

읽기 전용Gets the rendered height of a FrameworkElement. (다음에서 상속됨 FrameworkElement)

ActualWidth

읽기 전용Gets the rendered width of a FrameworkElement. (다음에서 상속됨 FrameworkElement)

AllowDrop

읽기/쓰기Gets or sets a value that determines whether this UIElement can be a drop target for purposes of drag-and-drop operations. (다음에서 상속됨 UIElement)

BaselineOffset

읽기 전용Gets a value that represents the offset in pixels from the top of the content to the baseline of the first paragraph. The baseline of the paragraph is the baseline of the first line in it.

BaseUri

읽기 전용Gets a Uniform Resource Identifier (URI) that represents the base Uniform Resource Identifier (URI) for an XAML-constructed object at XAML load time. This property is useful for Uniform Resource Identifier (URI) resolution at run time. (다음에서 상속됨 FrameworkElement)

CacheMode

읽기/쓰기Gets or sets a value that indicates that rendered content should be cached as a composited bitmap when possible. (다음에서 상속됨 UIElement)

Clip

읽기/쓰기Gets or sets the RectangleGeometry used to define the outline of the contents of a UIElement. (다음에서 상속됨 UIElement)

CompositeMode

읽기/쓰기Gets or sets a property that declares alternate composition and blending modes for the element in its parent layout and window. This is relevant for elements that are involved in a mixed XAML / Microsoft DirectX UI. (다음에서 상속됨 UIElement)

ContentEnd

읽기 전용Gets a TextPointer that indicates the end of content in the RichTextBlockOverflow.

ContentSource

읽기 전용Gets the RichTextBlock content source of this RichTextBlockOverflow.

ContentStart

읽기 전용Gets a TextPointer that indicates the start of content in the RichTextBlockOverflow.

DataContext

읽기/쓰기Gets or sets the data context for a FrameworkElement when it participates in data binding. (다음에서 상속됨 FrameworkElement)

DesiredSize

읽기 전용Gets the size that this UIElement computed during the measure pass of the layout process. (다음에서 상속됨 UIElement)

Dispatcher

읽기 전용Gets the CoreDispatcher that this object is associated with. (다음에서 상속됨 DependencyObject)

FlowDirection

읽기/쓰기Gets or sets the direction in which text and other UI elements flow within any parent element that controls their layout. This property can be set to either LeftToRight or RightToLeft. Setting FlowDirection to RightToLeft on any element sets the alignment to the right, the reading order to right-to-left and the layout of the control to flow from right to left. (다음에서 상속됨 FrameworkElement)

HasOverflowContent

읽기 전용Gets a value that indicates whether the RichTextBlockOverflow has content that extends beyond its bounds, that can provide content to an OverflowContentTarget element.

HasOverflowContentProperty

읽기 전용Identifies the HasOverflowContent dependency property.

Height

읽기/쓰기Gets or sets the suggested height of a FrameworkElement. (다음에서 상속됨 FrameworkElement)

HorizontalAlignment

읽기/쓰기Gets or sets the horizontal alignment characteristics that are applied to a FrameworkElement when it is composed in a layout parent, such as a panel or items control. (다음에서 상속됨 FrameworkElement)

IsDoubleTapEnabled

읽기/쓰기Gets or sets a value that determines whether the DoubleTapped event can originate from that element. (다음에서 상속됨 UIElement)

IsHitTestVisible

읽기/쓰기Gets or sets whether the contained area of this UIElement can return true values for hit testing. (다음에서 상속됨 UIElement)

IsHoldingEnabled

읽기/쓰기Gets or sets a value that determines whether the Holding event can originate from that element. (다음에서 상속됨 UIElement)

IsRightTapEnabled

읽기/쓰기Gets or sets a value that determines whether the RightTapped event can originate from that element. (다음에서 상속됨 UIElement)

IsTapEnabled

읽기/쓰기Gets or sets a value that determines whether the Tapped event can originate from that element. (다음에서 상속됨 UIElement)

Language

읽기/쓰기Gets or sets localization/globalization language information that applies to a FrameworkElement, and also to all child elements of the current FrameworkElement in the object representation and in UI. (다음에서 상속됨 FrameworkElement)

ManipulationMode

읽기/쓰기Gets or sets the ManipulationModes value used for UIElement behavior and interaction with gestures. Setting this value enables handling the manipulation events from this element in app code. (다음에서 상속됨 UIElement)

Margin

읽기/쓰기Gets or sets the outer margin of a FrameworkElement. (다음에서 상속됨 FrameworkElement)

MaxHeight

읽기/쓰기Gets or sets the maximum height constraint of a FrameworkElement. (다음에서 상속됨 FrameworkElement)

MaxLines

읽기/쓰기Gets or sets the maximum lines of text shown in the RichTextBlockOverflow.

MaxLinesProperty

읽기 전용Identifies the MaxLines dependency property.

MaxWidth

읽기/쓰기Gets or sets the maximum width constraint of a FrameworkElement. (다음에서 상속됨 FrameworkElement)

MinHeight

읽기/쓰기Gets or sets the minimum height constraint of a FrameworkElement. (다음에서 상속됨 FrameworkElement)

MinWidth

읽기/쓰기Gets or sets the minimum width constraint of a FrameworkElement. (다음에서 상속됨 FrameworkElement)

Name

읽기/쓰기Gets or sets the identifying name of the object. When a XAML processor creates the object tree from XAML markup, run-time code can refer to the XAML-declared object by this name. (다음에서 상속됨 FrameworkElement)

Opacity

읽기/쓰기Gets or sets the degree of the object's opacity. (다음에서 상속됨 UIElement)

OverflowContentTarget

읽기/쓰기Gets or sets a reference to another RichTextBlockOverflow that is the linked target for any text overflow from this RichTextBlockOverflow.

OverflowContentTargetProperty

읽기 전용Identifies the OverflowContentTarget dependency property.

Padding

읽기/쓰기Gets or sets a value that indicates the thickness of padding space between the boundaries of the content area and the content displayed by a RichTextBlockOverflow.

PaddingProperty

읽기 전용Identifies the Padding dependency property.

Parent

읽기 전용Gets the parent object of this FrameworkElement in the object tree. (다음에서 상속됨 FrameworkElement)

PointerCaptures

읽기 전용Gets the set of all captured pointers, represented as Pointer values. (다음에서 상속됨 UIElement)

Projection

읽기/쓰기Gets or sets the perspective projection (3-D effect) to apply when rendering this element. (다음에서 상속됨 UIElement)

RenderSize

읽기 전용Gets the final render size of a UIElement. (다음에서 상속됨 UIElement)

RenderTransform

읽기/쓰기Gets or sets transform information that affects the rendering position of a UIElement. (다음에서 상속됨 UIElement)

RenderTransformOrigin

읽기/쓰기Gets or sets the origin point of any possible render transform declared by RenderTransform, relative to the bounds of the UIElement. (다음에서 상속됨 UIElement)

RequestedTheme

읽기/쓰기Gets or sets the UI theme that is used by the UIElement (and its child elements) for resource determination. The UI theme you specify with RequestedTheme can override the app-level RequestedTheme. (다음에서 상속됨 FrameworkElement)

Resources

읽기/쓰기Gets the locally defined resource dictionary. In XAML, you can establish resource items as child object elements of a frameworkElement.Resources property element, through XAML implicit collection syntax. (다음에서 상속됨 FrameworkElement)

Style

읽기/쓰기Gets or sets an instance Style that is applied for this object during layout and rendering. (다음에서 상속됨 FrameworkElement)

Tag

읽기/쓰기Gets or sets an arbitrary object value that can be used to store custom information about this object. (다음에서 상속됨 FrameworkElement)

Transitions

읽기/쓰기Gets or sets the collection of Transition style elements that apply to a UIElement. (다음에서 상속됨 UIElement)

Triggers

읽기 전용Gets the collection of triggers for animations that are defined for a FrameworkElement. Not commonly used. (다음에서 상속됨 FrameworkElement)

UseLayoutRounding

읽기/쓰기Gets or sets a value that determines whether rendering for the object and its visual subtree should use rounding behavior that aligns rendering to whole pixels. (다음에서 상속됨 UIElement)

VerticalAlignment

읽기/쓰기Gets or sets the vertical alignment characteristics that are applied to a FrameworkElement when it is composed in a parent object such as a panel or items control. (다음에서 상속됨 FrameworkElement)

Visibility

읽기/쓰기Gets or sets the visibility of a UIElement. A UIElement that is not visible is not rendered and does not communicate its desired size to layout. (다음에서 상속됨 UIElement)

Width

읽기/쓰기Gets or sets the width of a FrameworkElement. (다음에서 상속됨 FrameworkElement)

 

설명

RichTextBlockOverflow 요소에 RichTextBlock을 사용하여 고급 페이지 레이아웃을 만들 수 있습니다. RichTextBlockOverflow 요소에 대한 콘텐츠는 항상 RichTextBlock 요소에서 가져옵니다. RichTextBlockOverflow 요소를 RichTextBlock 또는 다른 RichTextBlockOverflowOverflowContentTarget으로 설정하여 해당 요소를 연결합니다.

예제

여기서 RichTextBlockRichTextBlockOverflow 요소를 대상으로 지정하여 다중 열 텍스트 레이아웃을 만듭니다. 그 다음에는 첫 번째 RichTextBlockOverflow 요소가 콘텐츠 오버플로를 받는 두 번째 RichTextBlockOverflow 요소를 대상으로 합니다. 텍스트 오버플로 계산 방식에 대한 레이아웃 제어 인수는 부모 Grid의 제한된 WidthHeight와, Grid를 300픽셀 높이/너비의 똑같은 세 개 열로 나누는 ColumnDefinition 설정입니다. 오버플로는 FontSize 및 텍스트의 문자를 변경하는 기타 여러 텍스트 서식 속성의 영향도 받습니다.


<Grid x:Name="columnGrid" Background="White" Width="900" Height="300">
    <Grid.ColumnDefinitions>
        <ColumnDefinition/>
        <ColumnDefinition/>
        <ColumnDefinition/>
    </Grid.ColumnDefinitions>
    <RichTextBlock Grid.Column="0" IsTextSelectionEnabled="True" TextAlignment="Justify" 
                   OverflowContentTarget="{Binding ElementName=firstOverflowContainer}" 
                   TextIndent="12"
                   FontSize="12" FontFamily="Segoe UI" Foreground="#2a2a2a" Margin="20,0">
        <Paragraph>
            <Bold><Span Foreground="DarkSlateBlue" FontSize="16">Lorem ipsum dolor sit amet</Span></Bold>, consectetur adipiscing elit. Sed ac mi ipsum. Phasellus vel malesuada mauris. Donec pharetra, enim sit amet mattis tincidunt, felis nisi semper lectus, vel porta diam nisi in augue. Pellentesque lacus tortor, aliquam et faucibus id, rhoncus ut justo. Sed id lectus odio, eget pulvinar diam. Suspendisse eleifend ornare libero, in luctus purus aliquet non. Sed interdum, sem vitae rutrum rhoncus, felis ligula ultrices sem, in eleifend eros ante id neque. Vivamus quam lorem, varius vitae porta mollis, placerat quis est. Aenean eget sagittis massa. Sed tellus turpis, ullamcorper eget imperdiet vel, faucibus vel nisl. Nunc sed suscipit quam. Vivamus convallis faucibus dignissim. Fusce sollicitudin, quam vel cursus mattis, nisl velit tristique sapien, ac vestibulum ante arcu a nisl. Vestibulum commodo gravida ante at tincidunt. Vestibulum in ornare nunc. Nullam ut lorem vitae dui placerat lacinia sit amet a arcu. Nulla sit amet odio nisi. Praesent erat urna, venenatis ac adipiscing vel, congue at lectus. Proin ac metus at quam luctus ultricies.
        </Paragraph>
        <Paragraph>
            <Italic>This is an inline image.</Italic>
            <InlineUIContainer>
                <Border Background="Black">
                    <Image Source="Assets/SmallLogo.png" Height="30" Width="30"/>
                </Border>
            </InlineUIContainer> 
            Nam vitae ligula non ligula suscipit semper. Duis sed nulla metus, id hendrerit velit. Curabitur dolor purus, bibendum eu cursus lacinia, interdum vel augue. Aenean euismod eros et sapien vehicula dictum. Duis ullamcorper, turpis nec feugiat tincidunt, dui erat luctus risus, aliquam accumsan lacus est vel quam. Nunc lacus massa, varius eget accumsan id, congue sed orci. Duis dignissim hendrerit egestas. Proin ut turpis magna, sit amet porta erat. Nunc semper metus nec magna imperdiet nec vestibulum dui fringilla. Sed sed ante libero, nec porttitor mi. Ut luctus, neque vitae placerat egestas, urna leo auctor magna, sit amet ultricies ipsum felis quis sapien. Proin eleifend varius dui, at vestibulum nunc consectetur nec. Mauris nulla elit, ultrices a sodales non, aliquam ac est. Quisque sit amet risus nulla. Quisque vestibulum posuere velit, vitae vestibulum eros scelerisque sit amet. In in risus est, at laoreet dolor. Nullam aliquet pellentesque convallis. Ut vel tincidunt nulla. Mauris auctor tincidunt auctor.
        </Paragraph>
    </RichTextBlock>
    <RichTextBlockOverflow x:Name="firstOverflowContainer" Grid.Column="1" Margin="20,0"
                           OverflowContentTarget="{Binding ElementName=secondOverflowContainer}"/>
    <RichTextBlockOverflow x:Name="secondOverflowContainer" Grid.Column="2" Margin="20,0"/>
</Grid>


추가 예제를 보려면 XAML 텍스트 표시 샘플의 시나리오 4 "연결된 텍스트 컨테이너"를 참조하십시오.

요구 사항

지원되는 최소 클라이언트

Windows 8 [Windows 스토어 앱만]

지원되는 최소 서버

Windows Server 2012 [Windows 스토어 앱만]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

참고 항목

FrameworkElement
OverflowContentTarget
RichTextBlock
RichTextBock.OverflowContentTarget
XAML 텍스트 표시 샘플

 

 

표시:
© 2015 Microsoft