如何用C#在Excel中選擇範圍
IronXL.Excel 可讓 C# 開發人員在不依附 Office Interop 的情況下,選擇和操作 Excel 範圍、行和列。 使用簡單的語法如 workSheet["A1:C3"] 來程式化選擇範圍,GetRow() 用於行,GetColumn() 用於列。
在IronXL工作表上使用GetRange的單一呼叫來獲取一個如"A1:C3"的矩形範圍——無需迴圈,簡單明了。 這是同時開始操作多個儲存格的最快方法。
-
1使用 IronXL 安裝 NuGet Package Manager
-
2複製並運行這段程式碼。
var range = workSheet.GetRange("A1:C3");Dim range = workSheet.GetRange("A1:C3")Dim range = workSheet.GetRange("A1:C3") -
3部署到您的生產環境進行測試
立即在您的項目中開始使用 IronXL,並使用 免費試用
最小工作流程(5 個步驟)
- 下載 C# 庫以選擇範圍
- 直接使用
WorkSheet物件後的workSheet["A2:B8"]來選擇一個單元格範圍 - 使用
GetRow方法選擇工作表中的一行 - 使用
GetColumn方法選擇給定工作表中的欄位。 - 與
+運算子輕鬆合併範圍
如何在IronXL中選擇不同類型的範圍?
使用IronXL,您可以在選擇的範圍上執行各種操作,例如排序、計算和聚合。 該函式庫提供直覺的範圍選擇方法,可反映 Excel 的原生功能,同時提供程式化控制。
範圍選擇是許多 Excel 作業的基礎。 無論您是在進行數學運算、應用格式化還是提取資料,選擇正確的單元格是您的第一步。IronXL使這個過程變得簡單直接,其靈活的範圍選擇API讓這一切變得輕鬆。
+ 運算子組合多個 IronXL.Range。如何選擇一個矩形的單元格範圍?
要選擇從儲存格 A2 到 B8 的範圍,您可以使用以下程式碼:
using IronXL;
using System.Linq;
WorkBook workBook = WorkBook.Load("sample.xls");
WorkSheet workSheet = workBook.WorkSheets.First();
// Get range from worksheet
var range = workSheet["A2:B8"];using IronXL;
using System.Linq;
WorkBook workBook = WorkBook.Load("sample.xls");
WorkSheet workSheet = workBook.WorkSheets.First();
// Get range from worksheet
var range = workSheet["A2:B8"];Imports IronXL
Imports System.Linq
Private workBook As WorkBook = WorkBook.Load("sample.xls")
Private workSheet As WorkSheet = workBook.WorkSheets.First()
' Get range from worksheet
Private range = workSheet("A2:B8")Imports IronXL
Imports System.Linq
Private workBook As WorkBook = WorkBook.Load("sample.xls")
Private workSheet As WorkSheet = workBook.WorkSheets.First()
' Get range from worksheet
Private range = workSheet("A2:B8")
選擇範圍的操作
選取範圍後,IronXL 提供許多您可以執行的操作:
using IronXL;
using System;
using System.Linq;
// Load an existing spreadsheet
WorkBook workBook = WorkBook.Load("sample.xlsx");
WorkSheet workSheet = workBook.WorkSheets.First();
// Select a range and perform operations
var range = workSheet["A1:C5"];
// Apply formatting to the entire range
range.Style.BackgroundColor = "#E8F5E9";
range.Style.Font.Bold = true;
// Iterate through cells in the range
foreach (var cell in range)
{
Console.WriteLine($"Cell {cell.AddressString}: {cell.Value}");
}
// Get sum of numeric values in the range
decimal sum = range.Sum();
Console.WriteLine($"Sum of range: {sum}");using IronXL;
using System;
using System.Linq;
// Load an existing spreadsheet
WorkBook workBook = WorkBook.Load("sample.xlsx");
WorkSheet workSheet = workBook.WorkSheets.First();
// Select a range and perform operations
var range = workSheet["A1:C5"];
// Apply formatting to the entire range
range.Style.BackgroundColor = "#E8F5E9";
range.Style.Font.Bold = true;
// Iterate through cells in the range
foreach (var cell in range)
{
Console.WriteLine($"Cell {cell.AddressString}: {cell.Value}");
}
// Get sum of numeric values in the range
decimal sum = range.Sum();
Console.WriteLine($"Sum of range: {sum}");Imports IronXL
Imports System
Imports System.Linq
' Load an existing spreadsheet
Dim workBook As WorkBook = WorkBook.Load("sample.xlsx")
Dim workSheet As WorkSheet = workBook.WorkSheets.First()
' Select a range and perform operations
Dim range = workSheet("A1:C5")
' Apply formatting to the entire range
range.Style.BackgroundColor = "#E8F5E9"
range.Style.Font.Bold = True
' Iterate through cells in the range
For Each cell In range
Console.WriteLine($"Cell {cell.AddressString}: {cell.Value}")
Next
' Get sum of numeric values in the range
Dim sum As Decimal = range.Sum()
Console.WriteLine($"Sum of range: {sum}")Imports IronXL
Imports System
Imports System.Linq
' Load an existing spreadsheet
Dim workBook As WorkBook = WorkBook.Load("sample.xlsx")
Dim workSheet As WorkSheet = workBook.WorkSheets.First()
' Select a range and perform operations
Dim range = workSheet("A1:C5")
' Apply formatting to the entire range
range.Style.BackgroundColor = "#E8F5E9"
range.Style.Font.Bold = True
' Iterate through cells in the range
For Each cell In range
Console.WriteLine($"Cell {cell.AddressString}: {cell.Value}")
Next
' Get sum of numeric values in the range
Dim sum As Decimal = range.Sum()
Console.WriteLine($"Sum of range: {sum}")若要在試算表上執行更複雜的操作,請參閱完整的API文件。
如何選擇整行?
要選擇第4行,您可以使用GetRow(3)方法,通過零起始的索引。 這將包括第 4 行中的所有儲存格,即使其他行中的某些對應儲存格為空。
using IronXL;
using System.Linq;
WorkBook workBook = WorkBook.Load("sample.xls");
WorkSheet workSheet = workBook.WorkSheets.First();
// Get row from worksheet
var row = workSheet.GetRow(3);using IronXL;
using System.Linq;
WorkBook workBook = WorkBook.Load("sample.xls");
WorkSheet workSheet = workBook.WorkSheets.First();
// Get row from worksheet
var row = workSheet.GetRow(3);Imports IronXL
Imports System.Linq
Private workBook As WorkBook = WorkBook.Load("sample.xls")
Private workSheet As WorkSheet = workBook.WorkSheets.First()
' Get row from worksheet
Private row = workSheet.GetRow(3)Imports IronXL
Imports System.Linq
Private workBook As WorkBook = WorkBook.Load("sample.xls")
Private workSheet As WorkSheet = workBook.WorkSheets.First()
' Get row from worksheet
Private row = workSheet.GetRow(3)
選擇行特別有用,當您需要逐行處理數據時。例如,當加載試算表數據進行分析時:
using IronXL;
using System;
using System.Linq;
WorkBook workBook = WorkBook.Load("data.xlsx");
WorkSheet workSheet = workBook.WorkSheets.First();
// Process each row
for (int i = 0; i < workSheet.RowCount; i++)
{
var row = workSheet.GetRow(i);
// Skip empty rows
if (row.IsEmpty) continue;
// Process row data
foreach (var cell in row)
{
// Your processing logic here
Console.Write($"{cell.Value}\t");
}
Console.WriteLine();
}using IronXL;
using System;
using System.Linq;
WorkBook workBook = WorkBook.Load("data.xlsx");
WorkSheet workSheet = workBook.WorkSheets.First();
// Process each row
for (int i = 0; i < workSheet.RowCount; i++)
{
var row = workSheet.GetRow(i);
// Skip empty rows
if (row.IsEmpty) continue;
// Process row data
foreach (var cell in row)
{
// Your processing logic here
Console.Write($"{cell.Value}\t");
}
Console.WriteLine();
}Imports IronXL
Imports System
Imports System.Linq
Dim workBook As WorkBook = WorkBook.Load("data.xlsx")
Dim workSheet As WorkSheet = workBook.WorkSheets.First()
' Process each row
For i As Integer = 0 To workSheet.RowCount - 1
Dim row = workSheet.GetRow(i)
' Skip empty rows
If row.IsEmpty Then Continue For
' Process row data
For Each cell In row
' Your processing logic here
Console.Write($"{cell.Value}" & vbTab)
Next
Console.WriteLine()
NextImports IronXL
Imports System
Imports System.Linq
Dim workBook As WorkBook = WorkBook.Load("data.xlsx")
Dim workSheet As WorkSheet = workBook.WorkSheets.First()
' Process each row
For i As Integer = 0 To workSheet.RowCount - 1
Dim row = workSheet.GetRow(i)
' Skip empty rows
If row.IsEmpty Then Continue For
' Process row data
For Each cell In row
' Your processing logic here
Console.Write($"{cell.Value}" & vbTab)
Next
Console.WriteLine()
Next如何選擇整列?
若要選擇列 C,您可以使用 GetColumn(2) 方法或指定範圍地址為 workSheet["C:C"]。 類似於GetRow方法,它將包括所有相關的單元格,無論在指定的列中是否已填充。
using IronXL;
using System.Linq;
WorkBook workBook = WorkBook.Load("sample.xls");
WorkSheet workSheet = workBook.WorkSheets.First();
// Get column from worksheet
var column = workSheet.GetColumn(2);using IronXL;
using System.Linq;
WorkBook workBook = WorkBook.Load("sample.xls");
WorkSheet workSheet = workBook.WorkSheets.First();
// Get column from worksheet
var column = workSheet.GetColumn(2);Imports IronXL
Imports System.Linq
Private workBook As WorkBook = WorkBook.Load("sample.xls")
Private workSheet As WorkSheet = workBook.WorkSheets.First()
' Get column from worksheet
Private column = workSheet.GetColumn(2)Imports IronXL
Imports System.Linq
Private workBook As WorkBook = WorkBook.Load("sample.xls")
Private workSheet As WorkSheet = workBook.WorkSheets.First()
' Get column from worksheet
Private column = workSheet.GetColumn(2)
欄位選擇在處理財務報表或資料庫匯出等欄位資料時,證明是非常有價值的。 您可能會在創建新的試算表時使用計算的列:
using IronXL;
using System;
// Create a new workbook
WorkBook workBook = WorkBook.Create();
WorkSheet workSheet = workBook.CreateWorkSheet("Data");
// Add header row
workSheet["A1"].Value = "Quantity";
workSheet["B1"].Value = "Price";
workSheet["C1"].Value = "Total";
// Add sample data
for (int i = 2; i <= 10; i++)
{
workSheet[$"A{i}"].Value = i - 1;
workSheet[$"B{i}"].Value = 10.5 * (i - 1);
}
// Select the Total column and apply formula
var totalColumn = workSheet.GetColumn(2); // Column C
for (int i = 2; i <= 10; i++)
{
workSheet[$"C{i}"].Formula = $"=A{i}*B{i}";
}
workBook.SaveAs("calculations.xlsx");using IronXL;
using System;
// Create a new workbook
WorkBook workBook = WorkBook.Create();
WorkSheet workSheet = workBook.CreateWorkSheet("Data");
// Add header row
workSheet["A1"].Value = "Quantity";
workSheet["B1"].Value = "Price";
workSheet["C1"].Value = "Total";
// Add sample data
for (int i = 2; i <= 10; i++)
{
workSheet[$"A{i}"].Value = i - 1;
workSheet[$"B{i}"].Value = 10.5 * (i - 1);
}
// Select the Total column and apply formula
var totalColumn = workSheet.GetColumn(2); // Column C
for (int i = 2; i <= 10; i++)
{
workSheet[$"C{i}"].Formula = $"=A{i}*B{i}";
}
workBook.SaveAs("calculations.xlsx");Imports IronXL
Imports System
' Create a new workbook
Dim workBook As WorkBook = WorkBook.Create()
Dim workSheet As WorkSheet = workBook.CreateWorkSheet("Data")
' Add header row
workSheet("A1").Value = "Quantity"
workSheet("B1").Value = "Price"
workSheet("C1").Value = "Total"
' Add sample data
For i As Integer = 2 To 10
workSheet($"A{i}").Value = i - 1
workSheet($"B{i}").Value = 10.5 * (i - 1)
Next
' Select the Total column and apply formula
Dim totalColumn = workSheet.GetColumn(2) ' Column C
For i As Integer = 2 To 10
workSheet($"C{i}").Formula = $"=A{i}*B{i}"
Next
workBook.SaveAs("calculations.xlsx")Imports IronXL
Imports System
' Create a new workbook
Dim workBook As WorkBook = WorkBook.Create()
Dim workSheet As WorkSheet = workBook.CreateWorkSheet("Data")
' Add header row
workSheet("A1").Value = "Quantity"
workSheet("B1").Value = "Price"
workSheet("C1").Value = "Total"
' Add sample data
For i As Integer = 2 To 10
workSheet($"A{i}").Value = i - 1
workSheet($"B{i}").Value = 10.5 * (i - 1)
Next
' Select the Total column and apply formula
Dim totalColumn = workSheet.GetColumn(2) ' Column C
For i As Integer = 2 To 10
workSheet($"C{i}").Formula = $"=A{i}*B{i}"
Next
workBook.SaveAs("calculations.xlsx")如何結合多個範圍?
IronXL 提供靈活性,可使用 + 運算子來組合多個 IronXL.Range 物件。 通過使用+運算符,您可以輕鬆地連接或合併範圍,創建新的範圍。 當您需要對非連續的儲存格套用操作時,此功能尤其有用。 有關進階結合技術,請參閱Excel範圍結合範例。
+ 運算子來組合行和列是不支持的。range將被修改以包括結合的範圍。using IronXL;
using System.Linq;
WorkBook workBook = WorkBook.Load("sample.xls");
WorkSheet workSheet = workBook.WorkSheets.First();
// Get range from worksheet
var range = workSheet["A2:B2"];
// Combine two ranges
var combinedRange = range + workSheet["A5:B5"];using IronXL;
using System.Linq;
WorkBook workBook = WorkBook.Load("sample.xls");
WorkSheet workSheet = workBook.WorkSheets.First();
// Get range from worksheet
var range = workSheet["A2:B2"];
// Combine two ranges
var combinedRange = range + workSheet["A5:B5"];Imports IronXL
Imports System.Linq
Private workBook As WorkBook = WorkBook.Load("sample.xls")
Private workSheet As WorkSheet = workBook.WorkSheets.First()
' Get range from worksheet
Private range = workSheet("A2:B2")
' Combine two ranges
Private combinedRange = range + workSheet("A5:B5")Imports IronXL
Imports System.Linq
Private workBook As WorkBook = WorkBook.Load("sample.xls")
Private workSheet As WorkSheet = workBook.WorkSheets.First()
' Get range from worksheet
Private range = workSheet("A2:B2")
' Combine two ranges
Private combinedRange = range + workSheet("A5:B5")進階範圍選擇技術
IronXL.Excel 支援複雜的範圍選擇情境,與 Excel 的功能如出一轍:
using IronXL;
using System;
using System.Linq;
WorkBook workBook = WorkBook.Load("data.xlsx");
WorkSheet workSheet = workBook.WorkSheets.First();
// Select multiple non-adjacent ranges
var headerRange = workSheet["A1:E1"];
var dataRange1 = workSheet["A5:E10"];
var dataRange2 = workSheet["A15:E20"];
// Combine ranges for batch operations
var combinedData = dataRange1 + dataRange2;
// Apply consistent formatting across combined ranges
combinedData.Style.BottomBorder.Type = IronXL.Styles.BorderType.Thin;
combinedData.Style.Font.Height = 11;
// Copy formatting from one range to another
var sourceFormat = headerRange.Style;
dataRange1.First().Style = sourceFormat;using IronXL;
using System;
using System.Linq;
WorkBook workBook = WorkBook.Load("data.xlsx");
WorkSheet workSheet = workBook.WorkSheets.First();
// Select multiple non-adjacent ranges
var headerRange = workSheet["A1:E1"];
var dataRange1 = workSheet["A5:E10"];
var dataRange2 = workSheet["A15:E20"];
// Combine ranges for batch operations
var combinedData = dataRange1 + dataRange2;
// Apply consistent formatting across combined ranges
combinedData.Style.BottomBorder.Type = IronXL.Styles.BorderType.Thin;
combinedData.Style.Font.Height = 11;
// Copy formatting from one range to another
var sourceFormat = headerRange.Style;
dataRange1.First().Style = sourceFormat;Imports IronXL
Imports System
Imports System.Linq
Dim workBook As WorkBook = WorkBook.Load("data.xlsx")
Dim workSheet As WorkSheet = workBook.WorkSheets.First()
' Select multiple non-adjacent ranges
Dim headerRange = workSheet("A1:E1")
Dim dataRange1 = workSheet("A5:E10")
Dim dataRange2 = workSheet("A15:E20")
' Combine ranges for batch operations
Dim combinedData = dataRange1 + dataRange2
' Apply consistent formatting across combined ranges
combinedData.Style.BottomBorder.Type = IronXL.Styles.BorderType.Thin
combinedData.Style.Font.Height = 11
' Copy formatting from one range to another
Dim sourceFormat = headerRange.Style
dataRange1.First().Style = sourceFormatImports IronXL
Imports System
Imports System.Linq
Dim workBook As WorkBook = WorkBook.Load("data.xlsx")
Dim workSheet As WorkSheet = workBook.WorkSheets.First()
' Select multiple non-adjacent ranges
Dim headerRange = workSheet("A1:E1")
Dim dataRange1 = workSheet("A5:E10")
Dim dataRange2 = workSheet("A15:E20")
' Combine ranges for batch operations
Dim combinedData = dataRange1 + dataRange2
' Apply consistent formatting across combined ranges
combinedData.Style.BottomBorder.Type = IronXL.Styles.BorderType.Thin
combinedData.Style.Font.Height = 11
' Copy formatting from one range to another
Dim sourceFormat = headerRange.Style
dataRange1.First().Style = sourceFormat當使用公式時,範圍選擇變得更為強大:
// Select a range for formula application
var calculationRange = workSheet["D2:D20"];
// Apply formulas that reference other ranges
for (int i = 2; i <= 20; i++)
{
workSheet[$"D{i}"].Formula = $"=SUM(A{i}:C{i})";
}
// Use range in aggregate functions
var sumRange = workSheet["B2:B20"];
decimal totalSum = sumRange.Sum();
decimal average = sumRange.Avg();
decimal max = sumRange.Max();// Select a range for formula application
var calculationRange = workSheet["D2:D20"];
// Apply formulas that reference other ranges
for (int i = 2; i <= 20; i++)
{
workSheet[$"D{i}"].Formula = $"=SUM(A{i}:C{i})";
}
// Use range in aggregate functions
var sumRange = workSheet["B2:B20"];
decimal totalSum = sumRange.Sum();
decimal average = sumRange.Avg();
decimal max = sumRange.Max();Imports System
' Select a range for formula application
Dim calculationRange = workSheet("D2:D20")
' Apply formulas that reference other ranges
For i As Integer = 2 To 20
workSheet($"D{i}").Formula = $"=SUM(A{i}:C{i})"
Next
' Use range in aggregate functions
Dim sumRange = workSheet("B2:B20")
Dim totalSum As Decimal = sumRange.Sum()
Dim average As Decimal = sumRange.Avg()
Dim max As Decimal = sumRange.Max()Imports System
' Select a range for formula application
Dim calculationRange = workSheet("D2:D20")
' Apply formulas that reference other ranges
For i As Integer = 2 To 20
workSheet($"D{i}").Formula = $"=SUM(A{i}:C{i})"
Next
' Use range in aggregate functions
Dim sumRange = workSheet("B2:B20")
Dim totalSum As Decimal = sumRange.Sum()
Dim average As Decimal = sumRange.Avg()
Dim max As Decimal = sumRange.Max()範圍選擇最佳實踐
在 IronXL 中使用範圍時,請考慮這些效能與可靠性提示:
-
使用特定的範圍位址當您知道所需確切的單元格時。 這比選擇整行或整列更有效率。
-
在選擇之前驗証範圍邊界以避免運行時錯誤:
// Check if range exists before selection int lastRow = workSheet.RowCount; int lastColumn = workSheet.ColumnCount; if (lastRow >= 10 && lastColumn >= 3) { var safeRange = workSheet["A1:C10"]; // Process range }// Check if range exists before selection int lastRow = workSheet.RowCount; int lastColumn = workSheet.ColumnCount; if (lastRow >= 10 && lastColumn >= 3) { var safeRange = workSheet["A1:C10"]; // Process range }' Check if range exists before selection Dim lastRow As Integer = workSheet.RowCount Dim lastColumn As Integer = workSheet.ColumnCount If lastRow >= 10 AndAlso lastColumn >= 3 Then Dim safeRange = workSheet("A1:C10") ' Process range End If' Check if range exists before selection Dim lastRow As Integer = workSheet.RowCount Dim lastColumn As Integer = workSheet.ColumnCount If lastRow >= 10 AndAlso lastColumn >= 3 Then Dim safeRange = workSheet("A1:C10") ' Process range End If -
利用範圍迭代來提高處理效率:
var dataRange = workSheet["A1:E100"]; // Efficient: Process in batches foreach (var cell in dataRange) { if (cell.IsNumeric) { cell.Value = (decimal)cell.Value * 1.1m; // 10% increase } }var dataRange = workSheet["A1:E100"]; // Efficient: Process in batches foreach (var cell in dataRange) { if (cell.IsNumeric) { cell.Value = (decimal)cell.Value * 1.1m; // 10% increase } }Dim dataRange = workSheet("A1:E100") ' Efficient: Process in batches For Each cell In dataRange If cell.IsNumeric Then cell.Value = CDec(cell.Value) * 1.1D ' 10% increase End If NextDim dataRange = workSheet("A1:E100") ' Efficient: Process in batches For Each cell In dataRange If cell.IsNumeric Then cell.Value = CDec(cell.Value) * 1.1D ' 10% increase End If Next
對於更複雜的場景,如複製單元格範圍,IronXL提供了專門的方法,以保持格式及公式。
IronXL入門指南
要在您的項目中開始使用IronXL的範圍選擇功能,請從完整的入門指南開始。 透過 NuGet 套件管理員安裝 IronXL:
或使用 .NET CLI:
範圍選擇是 C# 中 Excel 操作的基礎。 透過 IronXL.Excel 直觀的 API,您可以有效率地選擇、處理和轉換 Excel 資料,而不需要 Office Interop 的複雜性。無論您是要建立報表、分析資料或自動化試算表工作,掌握範圍選擇都能大幅提升您的生產力。
常見問題
如何使用IronXL的C#選擇Excel中的範圍單元格?
使用IronXL,您可以使用簡單語法如workSheet["A1:C3"]來選擇範圍單元格,無需使用Office Interop,這使得範圍選擇快速且簡單。
IronXL提供哪些方法來選擇Excel電子表格中的整列?
IronXL允許您使用GetRow(index)方法來選擇整列。例如,GetRow(3)將選擇第四列,使用零基索引。
如何使用IronXL選擇整欄?
要在IronXL中選擇整欄,您可以使用GetColumn(2)選擇欄C,或者使用範圍地址workSheet["C:C"]來獲得更直觀的方法。
我可以在IronXL中合併多個範圍嗎?
是的,IronXL支持使用+運算符來合併多個範圍,允許您合併不相鄰的範圍進行批量操作。
IronXL如何處理範圍迭代?
IronXL允許您通過簡單的迴圈來迭代選擇的範圍,從而能夠高效地處理和操作範圍中的每個單元格。
IronXL支援選擇不相鄰的範圍嗎?
IronXL支持選擇不相鄰的範圍,您可以通過使用+運算符來合併範圍,以便在工作表的不同部分進行同時操作。
在IronXL中使用範圍選擇對Excel操作有什麼好處?
使用IronXL的範圍選擇簡化了像排序、格式化和聚合等操作,開發者可以很容易地針對工作表中的特定單元格或區域,無需複雜的程式碼。
IronXL在選擇Excel範圍時如何與Office Interop不同?
與Office Interop不同,IronXL提供了一個輕量且無依賴的方式來在C#中處理Excel,增強了性能並簡化了部署,無需在伺服器上安裝Microsoft Office。
IronXL中有哪些進階的範圍選擇技術?
IronXL提供了進階技術,例如合併多個範圍、應用一致的格式化,並在公式中使用範圍進行動態計算和批量數據處理。
應如何在C#專案中開始使用IronXL的範圍選擇功能?
要開始使用IronXL的範圍選擇功能,請通過NuGet Package Manager或.NET CLI安裝它,並參考入門指南以探索其簡單的Excel數據處理API。
Curtis Chau 擁有卡爾頓大學計算機科學學士學位,專注於前端開發,擅長於 Node.js、TypeScript、JavaScript 和 React。Curtis 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。