C# 实现 Word 加盖骑缝章效果

 

目录

实现效果

范例运行环境

Office DCOM 配置

设计实现

创建stamp图章类 

电子章图片的计算与定位

旋转图片方法

总结 


实现效果

在OA的自动化处理系统中,通过审批的最终节点,可能会对WORD文件加盖电子章,比如定位带有指定文字的Range周围加盖电子章,骑缝章,甚至水印图片。比如如下效果图:

54f76cb8e6914b3092a5e991c3a83ae1.png

 cd92a2943a0d460dba329084920e7f9c.png

范例运行环境

操作系统: Windows Server 2019 DataCenter

操作系统上安装 Office Word 2016 ,客户端使用的 Office Word 2019

.net版本: .netFramework4.7.1 或以上

开发工具:VS2019  C#

Office DCOM 配置

请参考我的文章《C# 读取Word表格到DataSet》有对Office DCOM详细配置介绍,这里不再赘述。 

设计实现

创建stamp图章类 

导出WORD文件可以传入多个图章类(如果需要的话),图章类主要包括实现如下设置:

1、可设置三种图片(标准的盖章图片、骑缝章图片、水印图片)

2、标准的盖章图片是否显示,不显示则可以只显示骑缝章或水印图片,这个可以模拟多次盖骑缝章的效果

3、定位盖章文字,可以设置一下 x、y的偏移量,以校准指定的模板文件,达到最佳重叠效果。

4、可设置各种章的翻转角度(可随机选取)

示例代码如下: 

public class stamp{public string stampImageFilename = "";  //盖章图片public string stampImageFilename2 = "";  //骑缝章图片public string stampImageFilename3 = "";  //水印章图片public bool stampImageVisible = true;  //主章是否可显示public string findWord = "";   //查找盖章定位文字public int findWordOffsetX = 0; //查找盖章文字后,章的定位偏移量public int findWordOffsetY = 0; //查找盖章文字后,章的定位偏移量public int stamp2X = 0; //骑缝章偏移量public int stamp2Y = 0; //骑缝章偏移量public int roteAngle = 0; //骑缝章翻转角度,12点方向为0度,顺时针计算角度public bool roteReFix = false; //骑缝章翻转角度重新计算适应图片(多见于对角线)public bool randomRoteAngle = false; //骑缝章是否按指定角度的最大随机值提取public int stampImageWidth = 0; //章宽度public int stampImageHeight = 0; //章高度public string stamp2Direction = "right";  //骑缝章盖章方向 默认right ,包括 left/top/bottompublic int stampAngle = 0; //骑缝章翻转角度,12点方向为0度,顺时针计算角度public bool randomStampAngle = false; //骑缝章是否按指定角度的最大随机值提取public int stamp3X = 0; //水印章每页Xpublic int stamp3Y = 0; //水印章每页Ypublic int stamp3Angle = 0; //水印章翻转角度,12点方向为0度,顺时针计算角度}

电子章图片的计算与定位

可以创建多个图章类添加 ArrayList 中进行方法传递, 初始值为public ArrayList Stamps = null;

创建方法  public string setWordStamps(string _filename,ArrayList Stamps)

实现的功能大致如下:

1、主章根据提供查找的关键字,如 “盖章处:”、“盖章:”,然后添加图片重叠在文字的上方周围

2、骑缝章根据页数进行分割计算,每页分隔宽度不小于 1 像素

3、骑缝章可选择“盖”在页面的上下左右位置,如果多个位置方向都需要“盖”,则传递多个 stamp 图章类

4、章可以随机和指定旋转角度

示例代码如下:

public string setWordStamps(string _filename,ArrayList Stamps){Object Nothing =System.Reflection.Missing.Value;string _file="",_path=Path.GetDirectoryName(_filename)+"\\tempbfile\\",_ext="";_file=Path.GetFileNameWithoutExtension(_filename);_ext=Path.GetExtension(_filename);string _validfilename=Guid.NewGuid().ToString()+_ext;string _lastfile=_path+_validfilename;string _pdfFile = _path + Guid.NewGuid().ToString() + ".pdf";System.IO.File.Copy(_filename,_lastfile,true);if(!File.Exists(_lastfile)){return "";}//取得Word文件保存路径object filename=_lastfile;//创建一个名为WordApp的组件对象Word.Application WordApp=new Word.Application();//创建一个名为WordDoc的文档对象WordApp.DisplayAlerts=Word.WdAlertLevel.wdAlertsNone;Word.Document WordDoc=WordApp.Documents.Open(ref filename,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing);WordDoc.SpellingChecked = false;WordDoc.ShowSpellingErrors = false;WordDoc.ActiveWindow.View.Type = Word.WdViewType.wdNormalView;//遍历stamp图章类foreach (stamp Stamp in Stamps){bool isfirst = true;int iii = 0;int selectStart = 0;ArrayList restoreRange = new ArrayList();while (true){iii++;bool findstamptext = false;if (Stamp.findWord != ""){WordApp.Selection.Range.Start = selectStart;Word.Find fnd = WordApp.Selection.Find;Object findText = Stamp.findWord;Object matchCase = false;Object matchWholeWord = Type.Missing;Object matchWildcards = false;Object matchSoundsLike = false;Object matchAllWordForms = false;Object forward = true;Object wrap = Word.WdFindWrap.wdFindContinue;Object format = false;Object replaceWith = "";Object replace = Type.Missing; ;Object matchKashida = Type.Missing;Object matchDiacritics = Type.Missing;Object matchAlefHamza = Type.Missing;Object matchControl = Type.Missing;if (fnd.Execute(ref findText, ref matchCase, ref matchWholeWord, ref matchWildcards, ref matchSoundsLike, ref matchAllWordForms,ref forward, ref wrap, ref format, ref replaceWith, ref replace, ref matchKashida, ref matchDiacritics, ref matchAlefHamza, ref matchControl)){selectStart = WordApp.Selection.Range.Start;restoreRange.Add(WordApp.Selection.Range);findstamptext = true;}else{findstamptext = false;}}if (findstamptext == false){break;}Word.InlineShape pic = WordApp.Selection.Range.InlineShapes.AddPicture(Stamp.stampImageFilename, false, true);Word.Shape picshape = pic.ConvertToShape();picshape.WrapFormat.Type = Word.WdWrapType.wdWrapNone;if (Stamp.stampImageWidth != 0){picshape.Width = Stamp.stampImageWidth;}if (Stamp.stampImageHeight != 0){picshape.Height = Stamp.stampImageHeight;}float pagewidth = 0;float pageheight = 0;if (findstamptext == true){if (Stamp.stampAngle > 0){Random rnd = new Random();picshape.Rotation = Stamp.randomStampAngle == false ? Stamp.stampAngle : rnd.Next(Stamp.stampAngle);}pagewidth = WordApp.Selection.PageSetup.PageWidth;pageheight = WordApp.Selection.PageSetup.PageHeight;int ox = 0; int oy = 0; int ow = 0; int oh = 0;WordApp.Windows[1].GetPoint(out ox, out oy, out ow, out oh, WordApp.Selection.Range);WordApp.Selection.Range.Text = "";picshape.RelativeHorizontalPosition = Word.WdRelativeHorizontalPosition.wdRelativeHorizontalPositionPage;picshape.RelativeVerticalPosition = Word.WdRelativeVerticalPosition.wdRelativeVerticalPositionPage;picshape.Left = (float)(ox * 0.405402299) - (picshape.Width / 2);picshape.Top = WordApp.Selection.Range.Information[Word.WdInformation.wdVerticalPositionRelativeToPage] - (picshape.Height / 2);if ((bool)WordApp.Selection.Range.Information[Word.WdInformation.wdWithInTable] == true){picshape.RelativeHorizontalPosition = Word.WdRelativeHorizontalPosition.wdRelativeHorizontalPositionCharacter;picshape.RelativeVerticalPosition = Word.WdRelativeVerticalPosition.wdRelativeVerticalPositionLine;picshape.Left = 0;picshape.Top = 0;}}picshape.Left = picshape.Left + Stamp.findWordOffsetX;picshape.Top = picshape.Top + Stamp.findWordOffsetY;if (Stamp.stampImageVisible == false){picshape.Visible = Microsoft.Office.Core.MsoTriState.msoFalse;}if (Stamp.stampImageFilename2 != ""&&isfirst==true){int ra = Stamp.roteAngle;if (ra > 0){Random rnd = new Random();ra = Stamp.randomRoteAngle == false ? ra : rnd.Next(ra);}Bitmap cc = (Bitmap)Image.FromFile(Stamp.stampImageFilename2);Bitmap bb = Rotate(cc, -ra, Stamp.roteReFix);
WordDoc.Windows[1].Panes[1].Pages;int pages2 = WordDoc.ComputeStatistics(Word.WdStatistic.wdStatisticPages, ref Nothing);if (pages2 == 1){pages2 = 0; //如果一页就不盖骑缝章}for (int pi = 1; pi <= pages2; pi++){Word.Range pagerange = WordDoc.GoTo(Word.WdGoToItem.wdGoToPage, Word.WdGoToDirection.wdGoToAbsolute, pi.ToString());int rx = (pi - 1) * bb.Width / pages2;int ry = 0;int rw = bb.Width / pages2;int rh = bb.Height;if (Stamp.stamp2Direction == "bottom"){rx = 0;ry = (pi - 1) * bb.Height / pages2;rw = bb.Width;rh = bb.Height / pages2;}else if (Stamp.stamp2Direction == "left"){rx = (pages2 - pi) * bb.Width / pages2;ry = 0;rw = bb.Width / pages2;rh = bb.Height;}else if (Stamp.stamp2Direction == "top"){rx = 0;ry = (pages2 - pi) * bb.Height / pages2;rw = bb.Width;rh = bb.Height / pages2;}if (rw < 1 || rh < 1){continue;}Bitmap sepbitmap1 = bb.Clone(new System.Drawing.Rectangle(rx, ry, rw, rh), System.Drawing.Imaging.PixelFormat.Format32bppPArgb);string temppng = "d:\\" + System.Guid.NewGuid().ToString() + ".png";sepbitmap1.Save(temppng);Word.InlineShape pic2 = pagerange.InlineShapes.AddPicture(temppng, false, true);Word.Shape picshape2 = pic2.ConvertToShape();picshape2.WrapFormat.Type = Word.WdWrapType.wdWrapNone;picshape2.Width = picshape.Width / pages2;picshape2.Height = picshape.Height;if (Stamp.stamp2Direction == "bottom" || Stamp.stamp2Direction == "top"){picshape2.Width = picshape.Width;picshape2.Height = picshape.Height / pages2;}picshape2.RelativeHorizontalPosition = Word.WdRelativeHorizontalPosition.wdRelativeHorizontalPositionPage;picshape2.RelativeVerticalPosition = Word.WdRelativeVerticalPosition.wdRelativeVerticalPositionPage;picshape2.Left = pagewidth - picshape2.Width;picshape2.Top = Stamp.stamp2Y;if (Stamp.stamp2Direction == "bottom"){picshape2.Left = Stamp.stamp2X;picshape2.Top = pageheight - picshape2.Height;}else if (Stamp.stamp2Direction == "left"){picshape2.Left = 0;picshape2.Top = Stamp.stamp2Y;}else if (Stamp.stamp2Direction == "top"){picshape2.Left = Stamp.stamp2X;picshape2.Top = 0;}resultReport += string.Format("stamp2 {2} left: {0} top:{1} width:{3} height:{4}<br>", picshape2.Left, picshape2.Top,pi,picshape2.Width,picshape2.Height);File.Delete(temppng);}}//stamp2if (Stamp.stampImageFilename3 != ""&&isfirst==true){int ra = Stamp.stamp3Angle;if (ra > 0){Random rnd = new Random();ra = Stamp.randomRoteAngle == false ? ra : rnd.Next(ra);}Bitmap cc = (Bitmap)Image.FromFile(Stamp.stampImageFilename3);Bitmap bb = Rotate(cc, -ra, true);int pages2 = WordDoc.ComputeStatistics(Word.WdStatistic.wdStatisticPages, ref Nothing);resultReport += string.Format(" PageCount3:{0}<br>", pages2);for (int pi = 1; pi <= pages2; pi++){Word.Range pagerange = WordDoc.GoTo(Word.WdGoToItem.wdGoToPage, Word.WdGoToDirection.wdGoToAbsolute, pi.ToString());int rx = (pi - 1) * bb.Width / pages2;rx = 0;int ry = 0;int rw = bb.Width;int rh = bb.Height;Bitmap sepbitmap1 = bb.Clone(new System.Drawing.Rectangle(rx, ry, rw, rh), System.Drawing.Imaging.PixelFormat.Format32bppPArgb);string temppng = "d:\\" + System.Guid.NewGuid().ToString() + ".png";Word.InlineShape pic2 = pagerange.InlineShapes.AddPicture(temppng, false, true);Word.Shape picshape2 = pic2.ConvertToShape();picshape2.WrapFormat.Type = Word.WdWrapType.wdWrapNone;picshape2.Width = picshape.Width;picshape2.Height = picshape.Height;picshape2.RelativeHorizontalPosition = Word.WdRelativeHorizontalPosition.wdRelativeHorizontalPositionPage;picshape2.RelativeVerticalPosition = Word.WdRelativeVerticalPosition.wdRelativeVerticalPositionPage;picshape2.Left = Stamp.stamp3X;//                       picshape2.Left = Stamp.stamp2X;picshape2.Top = Stamp.stamp2Y;File.Delete(temppng);}}//stamp3isfirst = false;}// whileforeach (Word.Range range in restoreRange){range.Text = Stamp.findWord;}}//foreachWordDoc.Save();WordDoc.Close(ref Nothing, ref Nothing, ref Nothing);//关闭WordApp组件对象WordApp.Quit(ref Nothing, ref Nothing, ref Nothing);return _lastfile;}

旋转图片方法

        public Bitmap Rotate(Bitmap b, int angle,bool fix=false){angle = angle % 360;//弧度转换double radian = angle * Math.PI / 180.0;double cos = Math.Cos(radian);double sin = Math.Sin(radian);//原图的宽和高int w = b.Width;int h = b.Height;int ow = w;int oh = h;int d = ((int)Math.Sqrt(Math.Pow(w - 0, 2) + Math.Pow(h- 0, 2))+1);if (fix == true){w = d;h = d;}int W = (int)(Math.Max(Math.Abs(w * cos - h * sin), Math.Abs(w * cos + h * sin)));int H = (int)(Math.Max(Math.Abs(w * sin - h * cos), Math.Abs(w * sin + h * cos)));//目标位图Bitmap dsImage = new Bitmap(w, h);System.Drawing.Graphics g = System.Drawing.Graphics.FromImage(dsImage);g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Bilinear;g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;//计算偏移量System.Drawing.Point Offset = new System.Drawing.Point((W - w) / 2, (H - h) / 2);//构造图像显示区域:让图像的中心与窗口的中心点一致System.Drawing.Rectangle rect = new System.Drawing.Rectangle(fix==false?0:(d-ow)/2, fix == false ? 0 : (d-oh)/2, ow, oh);
//            System.Drawing.Rectangle rect = new System.Drawing.Rectangle(Offset.X, Offset.Y, w, h);//           System.Drawing.Point center = new System.Drawing.Point(rect.X + rect.Width / 2, rect.Y + rect.Height / 2);System.Drawing.Point center = new System.Drawing.Point(rect.X + rect.Width / 2, rect.Y + rect.Height / 2);g.TranslateTransform(center.X, center.Y);g.RotateTransform(360 - angle);//恢复图像在水平和垂直方向的平移g.TranslateTransform(-center.X, -center.Y);g.DrawImage(b, rect);//重至绘图的所有变换g.ResetTransform();g.Save();g.Dispose();//dsImage.Save("yuancd.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);return dsImage;}

总结 

以上是实现设计的一些参考代码,在实际的使用中,可能还会遇到如下问题:

1、定位关键字的叠加效果不好,因此针对每一个模板文件均需要调整图片的x、y偏移量,以达到最佳效果

2、对于超多页面的文件(如几万页),骑缝的效果可能不佳,可以采取调整图片像素宽度,或拆分模板文件进行处理

示例代码仅作参考,欢迎大家评论指教!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/245113.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

洛谷刷题-【入门2】分支结构

目录 1.苹果和虫子 题目描述 输入格式 输出格式 输入输出样例 2.数的性质 题目描述 输入格式 输出格式 输入输出样例 3.闰年判断 题目描述 输入格式 输出格式 输入输出样例 4.apples 题目描述 输入格式 输出格式 输入输出样例 5.洛谷团队系统 题目描述 …

MySQL(基础篇)——SQL

一.SQL分类 二.DDL(数据定义语言) 1.DDL——数据库操作 ① 查询 查询所有数据库 SHOW DATABASES 查询当前所处数据库 SELECT DATABASE() ② 创建 CREATE DATABASE [IF NOT EXISTS] 数据库名(通常以db结尾) [DEFAULT CHARSET 字符集] [COLLATE 排序规则] ③ …

【网络安全 -> 防御与保护】专栏文章索引

为了方便 快速定位 和 便于文章间的相互引用等 作为一个快速准确的导航工具 网络安全——防御与保护 &#xff08;一&#xff09;.信息安全概述 &#xff08;二&#xff09;.防火墙组网

第04章_IDEA的安装与使用(上)(认识,卸载与安装,JDK相关设置,详细设置,工程与模块管理,代码模板的使用)

文章目录 第04章_IDEA的安装与使用&#xff08;上&#xff09;本章专题与脉络1. 认识IntelliJ IDEA1.1 JetBrains 公司介绍1.2 IntelliJ IDEA 介绍1.3 IDEA的主要优势&#xff1a;(vs Eclipse)1.4 IDEA 的下载 2. 卸载与安装2.1 卸载过程2.2 安装前的准备2.3 安装过程2.4 注册2…

逻辑回归中的损失函数梯度下降

一、引言 逻辑回归中的损失函数通常采用的是交叉熵损失函数&#xff08;cross-entropy loss function&#xff09;。在逻辑回归中&#xff0c;我们通常使用sigmoid函数将线性模型的输出转换为概率值&#xff0c;然后将这些概率值与实际标签进行比较&#xff0c;从而计算损失。 …

《统计学习方法:李航》笔记 从原理到实现(基于python)-- 第 2章感知机

文章目录 第 2章感知机2.1 感知机模型2.2 感知机学习策略2.2.1 数据集的线性可分性2.2.2 感知机学习策略 2.3 感知机学习算法2.3.1 感知机学习算法的原始形式2.3.2 算法的收敛性2.3.3 感知机学习算法的对偶形式 实践&#xff1a;二分类模型&#xff08;iris数据集&#xff09;数…

web漏洞总结大全(基础)

前言 本文章是和cike_y师傅一起写的&#xff0c;cike_y博客&#xff1a;https://blog.csdn.net/weixin_53912233?typeblog 也欢迎大家对本文章进行补充和指正&#xff0c;共同维护这个项目&#xff0c;本文的github项目地址&#xff1a; https://github.com/baimao-box/Sum…

Linux系统Shell脚本编程之条件语句

一、条件测试 Shell 环境根据命令执行后的返回状态值 " $? " 来判断是否执行成功&#xff0c;当返回值为0时表示成功&#xff0c;否则表示失败或异常&#xff08;非0值&#xff09;。使用专门的测试工具 test 命令&#xff0c;可以对特定条件进行测试&#xff0c;并…

VI / VIM的使用

vi/vim 的区别简单点来说&#xff0c;它们都是多模式编辑器&#xff0c;不同的是 vim 是 vi 的升级版本&#xff0c;它不仅兼容 vi 的所有指令&#xff0c;而且 还有一些新的特性在里面。例如语法加亮&#xff0c;可视化操作不仅可以在终端运行&#xff0c;也可以运行于 x win…

【Linux】糟糕,是心动的感觉——与Linux的初次相遇

初识Linux 导言一、计算机的发展1.1 历史背景1.2 计算机的发明 二、操作系统2.1 什么是操作系统&#xff1f;2.2 操作系统的诞生2.3 操作系统的发展2.3.1 批处理系统的发展2.3.2 分时系统2.3.3 实时系统2.3.4 通用操作系统 2.4 UNIX操作系统2.4.1 UNIX的诞生2.4.2 UNIX的发展 2…

Git学习 -- 分支合并、版本修改相关

目录 learn GIT Learn Git Branching merge和rebase的使用 基础命令 版本回退 工作区和暂存区 管理修改 撤销修改 删除修改 learn GIT Learn Git Branching 这是Gitee上的Git学习教程 Learn Git Branching Git Rebase Learn Git Branching 最终的实操 merge和rebase的…

爬虫正则+bs4+xpath+综合实战详解

Day3 - 1.数据解析概述_哔哩哔哩_bilibili 聚焦爬虫&#xff1a;爬取页面中指定的页面内容 编码流程&#xff1a;指定url -> 发起请求 -> 获取响应数据 -> 数据解析 -> 持久化存储 数据解析分类&#xff1a;正则、bs4、xpath(本教程的重点) 数据解析原理概述&am…

2024年 全新 HTTP 客户端 你用了?

我们平时开发项目的时候&#xff0c;经常会需要远程调用下其他服务提供的接口&#xff0c;于是我们会使用一些 HTTP 工具类比如 Hutool 提供的 HttpUtil。SpringBoot 3.0 出了一个Http Interface的新特性&#xff0c;它允许我们使用声明式服务调用的方式来调用远程接口&#xf…

重磅!Salesforce推出UE+无限版餐套,企业如何选择?

孤立的应用程序和脱节的技术堆栈是所有企业的噩梦。目前&#xff0c;市场上产品和服务种类繁多&#xff0c;无缝集成和清晰、直接的购买流程可以决定整体体验的成败。 Salesforce云以及其他应用程序在过去几年中经历了巨大增长。随着越来越多的功能被捆绑在一起&#xff0c;Un…

威联通QNAP NAS结合cpolar内网穿透实现公网远程访问NAS中存储的文件

文章目录 推荐 前言1. 威联通安装cpolar内网穿透2. 内网穿透2.1 创建隧道2.2 测试公网远程访问 3. 配置固定二级子域名3.1 保留二级子域名3.2 配置二级子域名 4. 使用固定二级子域名远程访问 推荐 前些天发现了一个巨牛的人工智能学习网站&#xff0c;通俗易懂&#xff0c;风趣…

Tarjan 算法(超详细!!)

推荐在 cnblogs 上阅读 Tarjan 算法 前言 说来惭愧&#xff0c;这个模板仅是绿的算法至今我才学会。 我还记得去年 CSP2023 坐大巴路上拿着书背 Tarjan 的模板。虽然那年没有考连通分量类似的题目。 现在做题遇到了 Tarjan&#xff0c;那么&#xff0c;重学&#xff0c;开…

“趣味夕阳,乐享生活”小组活动(第二节)

立冬以来&#xff0c;天气日渐寒冷&#xff0c;气温变化较大&#xff0c;各种传染病多发&#xff0c;为进一步增强老年人冬季预防传染病保健意识及科学合理健康的生活方式。近日&#xff0c;1月22日&#xff0c;南阳市人人社工灌涨站开展了“趣味夕阳&#xff0c;乐享生活”小组…

【C++ | 数据结构】从哈希的概念 到封装C++STL中的unordered系列容器

文章目录 一、unordered系列容器的底层结构 - 哈希1. 哈希概念2. 哈希冲突 二、解决哈希冲突方法一&#xff1a;合理设计哈希函数&#x1f6a9;哈希函数设计原则&#x1f6a9;常见哈希函数 方法二&#xff1a;开闭散列&#x1f6a9;闭散列线性探测法&#xff08;实现&#xff0…

gradle打包分离依赖jar

正常打包的jar是包含项目所依赖的jar包资源&#xff0c;而且大多数场景下的依赖资源是不会频繁的变更的&#xff0c;所以实际把项目自身jar和其所依赖的资源分离可以实现jar包瘦身&#xff0c;减小上传的jar包总大小&#xff0c;能实现加速部署的效果 一 原本结构 二 配置buil…

第04章_IDEA的安装与使用(下)(IDEA断点调试,IDEA常用插件)

文章目录 第04章_IDEA的安装与使用&#xff08;下&#xff09;8. 快捷键的使用8.1 常用快捷键8.2 查看快捷键1、已知快捷键操作名&#xff0c;未知快捷键2、已知快捷键&#xff0c;不知道对应的操作名 8.3 自定义快捷键8.4 使用其它平台快捷键 9. IDEA断点调试(Debug)9.1 为什么…