텍스트 윤곽선 추가

텍스트 윤곽선 효과 추가하기

텍스트 윤곽선 효과는 각 문자 주위에 테두리를 그려 텍스트의 가시성과 스타일을 향상시킵니다. 이 효과는 특히 눈길을 사로잡는 굵은 글씨를 만들거나 이미지 또는 색상이 있는 배경 위에 텍스트가 나타날 때 가독성을 확보하는 데 유용합니다. IronWord provides the TextOutlineEffect class with preset configurations for quick implementation.

To apply a text outline, create a TextStyle object and configure its TextEffect property with TextOutlineEffect.DefaultEffect. 이 사전 설정은 대부분의 시나리오에 적합한 표준 개요 구성을 제공합니다. 사용자 지정 윤곽선의 경우 개발자는 윤곽선 너비, 색상 및 선 스타일과 같은 속성을 지정하여 특정 시각적 효과를 구현할 수 있습니다.

After setting up the text style, create a Run containing the desired TextContent and assign the configured style to the run's Style property. Use AddChild to add the styled run to a paragraph, then add the paragraph to the document. 이러한 체계적인 접근 방식은 적절한 서식을 보장하고 문서의 무결성을 유지합니다.

코드 설명

IronWord 사용하면 텍스트에 텍스트 개요를 적용하는 것이 매우 간단합니다. 단순해 보이지만, 텍스트 개요의 각 속성은 모든 요구 사항에 맞게 조정할 수 있습니다. Once a Word document is imported, the textStyle is configured to include a text outline effect by assigning TextOutlineEffect.DefaultEffect to the TextOutlineEffect property of a new TextEffect instance.

To apply this effect to text, a Paragraph is created, then a Run object is created containing the desired TextContent. The configured textStyle is assigned to the Run, applying the text outline effect. The Run is added to the Paragraph using AddChild, and the Paragraph is added to the document. 이는 문서 계층 구조(문서 → 단락 → 실행 → 텍스트 콘텐츠)를 따릅니다. 마지막으로 문서가 내보내집니다.

IronWord 의 문서 요소에 대해 자세히 알아보세요.

시작할 준비 되셨나요?
Nuget 다운로드 35,581 | 버전: 2026.3 방금 출시되었습니다
Still Scrolling Icon

아직도 스크롤하고 계신가요?

빠른 증거를 원하시나요? PM > Install-Package IronWord
샘플 실행 데이터를 워드 문서로 변환 확인.