IRONSOFTWAREHOME

C# Slide Element Tutorial – IronPPT

Curtis Chau
Curtis Chau
Updated: 2026년 6월 29일

IronPPT는 .NET C# 개발자가 PowerPoint 프레젠테이션을 만들고, 읽고, 편집하는 기능을 애플리케이션에 원활하게 통합할 수 있도록 설계된 강력한 PowerPoint 라이브러리입니다. 파워포인트 프레젠테이션에서 슬라이드는 콘텐츠를 구성하고 정리하는 데 있어 가장 기본적인 요소입니다.

빠른 시작: 새 슬라이드 또는 기존 슬라이드에 텍스트 삽입

이 예시는 IronPPT를 사용하여 슬라이드에 텍스트를 얼마나 쉽게 추가할 수 있는지 보여줍니다. 단 몇 줄의 코드로, 첫 번째 슬라이드가 있으면 삽입하고, 없으면 새로 만들어서 저장하면 됩니다. 빠르고 간편하게 설정할 수 있습니다.

  1. 1Install IronPPT with NuGet Package Manager

    PM > Install-Package IronPPT

  2. 2다음 코드 조각을 복사하여 실행하세요.

    var doc = new IronPPT.PresentationDocument();
    var text = doc.Slides.Count > 0 ? doc.Slides[0].AddText("Quick Option") : doc.Slides.Add(new IronPPT.Models.Slide()).AddText("Quick Option");
    doc.Save("quick.pptx");
    C#
  3. 3실제 운영 환경에서 테스트할 수 있도록 배포하세요.

    무료 체험판으로 오늘 프로젝트에서 IronPPT 사용 시작하기
    arrow pointer

목차

텍스트 추가

텍스트 내용

새로운 프레젠테이션을 만들거나 기존 프레젠테이션을 편집할 때, 텍스트 관리 도구를 사용하면 텍스트 배치와 서식을 완벽하게 제어할 수 있으므로 메시지를 명확하고 전문적으로 전달하는 슬라이드를 디자인할 수 있습니다.

using IronPPT;
using IronPPT.Models;

// Create a new PowerPoint presentation
var document = new PresentationDocument();

// Ensure there is at least one slide to work with
if (document.Slides.Count == 0)
{
    document.Slides.Add(new Slide());
}

// Add text to the first slide
var text = document.Slides[0].AddText("Hello");

// Append text to the existing text on the slide
text.Text += " There!";

// Check if there is any text element to remove from the first slide
if (document.Slides[0].Texts.Count > 0)
{
    document.Slides[0].Texts[0].Remove();
}

// Export the PowerPoint presentation with the specified file name
document.Save("addText.pptx");
C#

스타일링 설정

텍스트 스타일링을 사용하면 글꼴 크기, 색상, 스타일, 취소선, 밑줄과 같은 속성을 정의하여 텍스트의 시각적 모양을 사용자 지정할 수 있습니다. 이러한 스타일을 적용하면 텍스트의 표현이 향상되고 문서의 전체적인 모양이 개선됩니다.

using IronPPT;
using IronPPT.Models; // Ensure the library is available
using IronPPT.Enums;

// Create a new presentation document
var document = new PresentationDocument();

// Define and customize the text style
var textStyle = new TextStyle
{
    IsBold = true,                      // Text is bold
    IsItalic = true,                    // Text is italic
    Color = Color.Blue,                 // Text color is blue
    Strike = StrikValue.SingleStrike,   // Text is single struck-off
    Outline = true,                     // Text has an outline
    NoProof = true,                     // Disables proofing for the text
    Spacing = 10.0,                     // Text spacing is set to 10
    Underline = new Underline 
    {
        LineValue = UnderlineValues.Single,   // Single underline
        Color = Color.Red                     // Underline color is red
    },
    Languages = "en-US",               // Text language is set to U.S. English
    SpecVanish = false,                // Text does not vanish when special formatting is applied
};

// Create text content and apply the defined style
var text = new Text("Hello World");   // Instantiate text with a string
text.TextStyle = textStyle;           // Apply the defined style to the text

// Add a new slide if none exist
if (document.Slides.Count == 0)
{
    document.Slides.Add(new Slide());   // Add a new slide to the document
}

// Add the styled text to the first slide
document.Slides[0].AddText(text);      // Add the newly created text object to the first slide

// Save the presentation document to a file
document.Save("textStyle.pptx");        // Save the document with the filename "textStyle.pptx"
C#

이미지 추가

최적의 화면 표시를 위해 이미지 설정을 조정하십시오. 적절한 설정을 통해 이미지가 시각적으로 매력적이고 맥락에 적합하게 보이도록 할 수 있습니다.

using IronPPT;
using IronPPT.Models;
using System.Drawing;

// This script demonstrates the creation of a PowerPoint presentation using the IronPPT library.
// An image is added to the presentation, its properties are modified, and then the presentation is saved.

// Create a new PowerPoint presentation
var document = new PresentationDocument();

// Create a new Image object and load an image file.
var image = new Image();
image.LoadFromFile("sample.png");

// Add the image to the first slide (index 0) of the presentation.
var newImage = document.AddImage(image, 0);

// Set the properties of the added image.
// Position property is set using a Point object, which holds X and Y coordinates.
newImage.Position = new Point(200, 200); // Set image position on the slide
newImage.Angle = 45; // Set the rotation angle of the image
newImage.Name = "new image"; // Assign a descriptive name to the image
newImage.Width = 150; // Set the width of the image in pixels
newImage.Height = 150; // Set the height of the image in pixels

// Export the PowerPoint presentation to a file named "addImage.pptx"
document.Save("addImage.pptx");

도형 추가

프레젠테이션에 도형을 쉽게 추가하고 사용자 지정하려면 도형의 유형, 크기(너비 및 높이), 채우기 및 윤곽선 색상, 슬라이드에서의 위치를 ​​정의하세요.

using IronPPT;
using IronPPT.Models;
using IronPPT.Enums;

// Load a PowerPoint presentation.
// The PresentationDocument is assumed to represent an entire PPTX file loaded from disk.
var document = new PresentationDocument("output.pptx");

// Configure a new shape.
// Shape is assumed to be a model object representing drawable elements on a slide.
Shape shape = new Shape
{
    Name = "triangle",
    Type = ShapeType.Triangle,
    Width = 100,
    Height = 100,
    FillColor = new Color("#444444"),
    OutlineColor = Color.Black,

    // Position is set via the Position property, which accepts an (x, y) tuple.
    // It's important that these coordinates are valid for display on the slide.
    Position = (200, 200)
};

// Add the shape to the first slide in the presentation.
// Slides[0] refers to the first slide in the collection. Ensure a slide exists at this index.
document.Slides[0].AddShape(shape);

// Export the modified PowerPoint presentation.
// Saves the changes to a new file, ensuring the original presentation is not overwritten.
document.Save("addShape.pptx");
C#

자주 묻는 질문

IronPPT는 무엇에 사용됩니까?

IronPPT는 .NET C# 개발자를 위한 포괄적인 PowerPoint 라이브러리로, 응용 프로그램 내에서 PowerPoint 프레젠테이션을 원활하게 생성, 읽고, 편집할 수 있도록 합니다.

IronPPT를 사용하여 슬라이드에 텍스트를 추가하려면 어떻게 해야 합니까?

IronPPT를 사용하여 슬라이드에 텍스트를 추가하려면, 간단히 몇 줄의 코드를 사용해 기존 슬라이드에 텍스트를 삽입하거나 새 슬라이드를 만들어 프레젠테이션을 저장할 수 있습니다.

IronPPT에서 텍스트 스타일을 사용자 정의할 수 있나요?

예, IronPPT는 텍스트의 모양을 향상시키기 위해 글꼴 크기, 색상, 스타일, 취소선 및 밑줄과 같은 속성을 정의하여 텍스트 스타일을 사용자 정의할 수 있습니다.

IronPPT를 사용하여 PowerPoint 프레젠테이션에 이미지를 추가할 수 있습니까?

IronPPT는 파일 또는 FileStream에서 이미지를 로드하고, 프레젠테이션에서 최적의 표시를 위해 크기, 각도 및 위치를 설정할 수 있는 도구를 제공합니다.

IronPPT에서 도형을 추가할 수 있습니까?

예, IronPPT에서 도형의 타입, 크기, 채우기 및 외곽선 색상과 슬라이드 상의 위치를 설정하여 도형을 추가하고 사용자 정의할 수 있습니다.

IronPPT가 기존 PowerPoint 프레젠테이션 편집을 지원합니까?

IronPPT는 새 프레젠테이션을 생성할 수 있을 뿐만 아니라 기존의 것들도 편집할 수 있어, 콘텐츠 및 포맷에 대한 완전한 제어를 제공합니다.

IronPPT에서 텍스트와 이미지의 위치를 설정할 수 있습니까?

예, IronPPT는 슬라이드에서 텍스트와 이미지의 위치를 설정할 수 있어, 프레젠테이션 레이아웃에 맞게 정밀하게 배치할 수 있습니다.

IronPPT에서 이미지 삽입을 지원하는 파일 형식은 무엇입니까?

IronPPT는 다양한 파일 형식에서 이미지를 삽입할 수 있도록 지원해, 프레젠테이션의 시각적 자산과 호환성을 보장합니다.

IronPPT가 프레젠테이션의 시각적 매력을 어떻게 향상시킵니까?

IronPPT는 텍스트 스타일링, 이미지 구성 및 도형 디자인을 사용자 정의할 수 있는 도구를 제공하여, 전문적인 프레젠테이션 모양을 보장함으로써 시각적 매력을 향상시킵니다.

IronPPT가 다양한 버전의 PowerPoint와 호환됩니까?

IronPPT는 다양한 PowerPoint 버전과 호환되도록 설계되어, C# 응용 프로그램에 원활하게 통합할 수 있습니다.

Curtis Chau
기술 문서 작성자

커티스 차우는 칼턴 대학교에서 컴퓨터 과학 학사 학위를 취득했으며, Node.js, TypeScript, JavaScript, React를 전문으로 하는 프론트엔드 개발자입니다. 직관적이고 미적으로 뛰어난 사용자 인터페이스를 만드는 데 열정을 가진 그는 최신 프레임워크를 활용하고, 잘 구성되고 시각적으로 매력적인 매뉴얼을 제작하는 것을 즐깁니다.

...
더 읽어보기

시작할 준비 되셨나요?

Nuget Downloads 6,070버전:2026.9방금 출시

PDF용 C# NuGet 라이브러리
NuGet을 사용하여 설치하세요

버전: 2026.9

PM > Install-Package IronPPT
nuget.org/packages/IronPPT/
  1. 솔루션 탐색기에서 참조를 마우스 오른쪽 버튼으로 클릭하고 NuGet 패키지 관리를 선택합니다.
  2. 찾아보기를 선택하고 "IronPPT"를 검색하세요.
  3. 패키지를 선택하고 설치하세요
C# PDF DLL
DLL 다운로드

버전: 2026.9

  1. IronPPT 파일을 다운로드하여 솔루션 디렉터리 내의 ~/Libs와 같은 위치에 압축을 푸세요.
  2. Visual Studio 솔루션 탐색기에서 참조를 마우스 오른쪽 버튼으로 클릭합니다. 찾아보기를 선택하고 "IronPPT.dll"을 선택합니다.

라이선스 가격은 749달러 부터 시작합니다.

Key in blue circle

무료 30일 체험 키를 즉시 받으세요.

Your trial license will be sent to your email address

제한 없음. 100% 무제한 이용. 신용카드 불필요.

bullet_checked신용카드나 계정 생성은 필요하지 않습니다.제한 없음. 100% 무제한 이용. 신용카드 불필요.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
무료 라이브 데모를 예약하세요
Booking Badge

전 세계 수백만 엔지니어들이 신뢰하는 제품입니다.

Iron Software의 고객 로고
부담 없는 무료 상담을 받아보세요
아래 양식을 작성하시거나 sales@ironsoftware.com으로 이메일을 보내주세요.
고객님의 정보는 항상 비밀로 유지됩니다.
전 세계 수백만 엔지니어들이 신뢰하는 제품입니다.
Iron Software의 고객 로고
지금 바로 30일 무료 체험판 키를 받으세요.
신용카드나 계정 생성은 필요하지 않습니다.