FlowDocument.Background 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
콘텐츠 영역의 Brush 배경을 채우는 데 사용되는 값을 가져오거나 설정합니다.
public:
property System::Windows::Media::Brush ^ Background { System::Windows::Media::Brush ^ get(); void set(System::Windows::Media::Brush ^ value); };
public System.Windows.Media.Brush Background { get; set; }
member this.Background : System.Windows.Media.Brush with get, set
Public Property Background As Brush
속성 값
콘텐츠 영역의 배경을 채우거나 null 배경 브러시를 사용하지 않는 데 사용되는 브러시입니다. 기본값은 null입니다.
예제
다음 예제에서는 요소의 FlowDocument 특성을 설정하는 Background 방법을 보여줍니다.
<FlowDocumentReader>
<FlowDocument
Background="IndianRed"
Foreground="NavajoWhite"
>
<Paragraph>
This FlowDocument will have a background color of Indian red, with the text
colored Navajo white. Any Forground or Background settings on this paragraph
would override the top-level settings for the FlowDocument.
</Paragraph>
</FlowDocument>
</FlowDocumentReader>
다음 예제에서는 설정 하는 방법의 Typography 속성 프로그래밍 방식으로 합니다.
FlowDocument flowDoc = new FlowDocument(new Paragraph(new Run("A bit of text content...")));
flowDoc.Background = Brushes.IndianRed;
flowDoc.Foreground = Brushes.NavajoWhite;
Dim flowDoc As New FlowDocument(New Paragraph(New Run("A bit of text content...")))
flowDoc.Background = Brushes.IndianRed
flowDoc.Foreground = Brushes.NavajoWhite
설명
사용 가능한 미리 정의된 브러시 색을 보여 주는 견본 표는 다음을 참조하세요 Brushes.
종속성 속성 정보
| Item | 가치 |
|---|---|
| 식별자 필드 | BackgroundProperty |
메타데이터 속성이 다음으로 설정됩니다. true |
AffectsRender |