그라디언트 효과 추가 텍스트에 그라디언트 효과 적용하기 IronWord 의 그라데이션 효과를 사용하면 텍스트에 색상 전환을 표시하여 시각적으로 매력적인 디자인을 만들 수 있습니다. IronWord provides preset gradient options through the Gradient class, such as Gradient.DefaultGray, which can be assigned directly to the GradientEffect property of a TextEffect. To apply a gradient, create a TextStyle object and configure its TextEffect property with a GradientEffect. The gradient can be set using predefined static instances from the Gradient class, which offer commonly used color schemes and transitions. 이러한 사전 설정은 색상 정지점을 수동으로 구성하지 않고도 전문가 수준의 그라데이션을 추가하는 과정을 간소화합니다. Once the style is configured, create a Run containing TextContent and assign the style to the run's Style property. Add the run to a paragraph using AddChild, then insert the paragraph into the document. 이러한 구조화된 접근 방식은 그라디언트 효과가 출력 문서에 제대로 적용되고 유지되도록 보장합니다. 코드 설명 위 코드는 텍스트에 그라데이션 효과를 적용하는 방법을 보여줍니다. 먼저 새 워드 문서를 만듭니다. Then, it creates a TextStyle object and configures it to use a gradient effect by assigning the Gradient.DefaultGray preset to the GradientEffect property. To add the styled text, a Paragraph is created, then a Run object is created containing TextContent with "Hello World". The configured TextStyle is assigned to the Run, applying the gradient effect. The Run is added to the Paragraph using AddChild, and the Paragraph is added to the document. 이는 문서 계층 구조(문서 → 단락 → 실행 → 텍스트 콘텐츠)를 따릅니다. 마지막으로 새 워드 문서가 내보내집니다. 더 많은 예시와 설명은 다음 문서( 텍스트에 그라디언트 효과 추가하는 방법) 를 참조하세요. 여기에서 워드 문서 요소 관련 튜토리얼을 더 살펴보세요. 관련 문서 링크 깃허브에서 보기 관련 튜토리얼 관련 사용법 가이드 클래스 문서화 IronWord DLL 다운로드 이 페이지의 문제점을 신고하세요 시작할 준비 되셨나요? Nuget 다운로드 35,581 | 버전: 2026.3 방금 출시되었습니다 무료 체험 시작하기 NuGet 무료 다운로드 총 다운로드 수: 35,581 라이선스 보기 아직도 스크롤하고 계신가요? 빠른 증거를 원하시나요? PM > Install-Package IronWord 샘플 실행 데이터를 워드 문서로 변환 확인. NuGet 무료 다운로드 총 다운로드 수: 35,581 라이선스 보기