Figure.VerticalAnchor 속성

정의

콘텐츠가 고정되는 세로 방향의 위치를 나타내는 값을 가져오거나 설정합니다.

public:
 property System::Windows::FigureVerticalAnchor VerticalAnchor { System::Windows::FigureVerticalAnchor get(); void set(System::Windows::FigureVerticalAnchor value); };
public System.Windows.FigureVerticalAnchor VerticalAnchor { get; set; }
member this.VerticalAnchor : System.Windows.FigureVerticalAnchor with get, set
Public Property VerticalAnchor As FigureVerticalAnchor

속성 값

FigureVerticalAnchor

FigureVerticalAnchor의 세로 앵커 위치를 지정하는 Figure 열거형의 멤버입니다.

기본값은 ParagraphTop입니다.

예제

다음 예제에서는 설정 하는 방법을 보여 줍니다 합니다 VerticalAnchor 특성을 Figure 요소입니다.

<FlowDocument>
  <Paragraph>
    <Figure
      Name="myFigure"              
      Width="140" Height="50" 
      HorizontalAnchor="PageCenter"
      VerticalAnchor="PageCenter"
      HorizontalOffset="100" 
      VerticalOffset="20" 
      WrapDirection="Both"
      />
  </Paragraph>
</FlowDocument>

다음 예제에서는 설정 하는 방법의 VerticalAnchor 속성 프로그래밍 방식으로 합니다.

Figure figx = new Figure();
figx.Name = "myFigure";
figx.Width = new FigureLength(140);
figx.Height = new FigureLength(50);
figx.HorizontalAnchor = FigureHorizontalAnchor.PageCenter;
figx.VerticalAnchor = FigureVerticalAnchor.PageCenter;
figx.HorizontalOffset = 100;
figx.VerticalOffset = 20;
figx.WrapDirection = WrapDirection.Both;

Paragraph parx = new Paragraph(figx);
FlowDocument flowDoc = new FlowDocument(parx);
Dim figx As New Figure()
With figx
    .Name = "myFigure"
    .Width = New FigureLength(140)
    .Height = New FigureLength(50)
    .HorizontalAnchor = FigureHorizontalAnchor.PageCenter
    .VerticalAnchor = FigureVerticalAnchor.PageCenter
    .HorizontalOffset = 100
    .VerticalOffset = 20
    .WrapDirection = WrapDirection.Both
End With

Dim parx As New Paragraph(figx)
Dim flowDoc As New FlowDocument(parx)

설명

종속성 속성 정보

식별자 필드 VerticalAnchorProperty
메타 데이터 속성 설정 true AffectsParentMeasure

적용 대상