StyleSet.GetPenCopy(StyleSetResourceId) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检索 StyleSet 中的特定笔。 如果它不在当前中,它将查找父链,以确定它是否可以找到它。 这是一个副本。 调用方负责释放。
public:
System::Drawing::Pen ^ GetPenCopy(Microsoft::VisualStudio::Modeling::Diagrams::StyleSetResourceId ^ penId);
public System.Drawing.Pen GetPenCopy (Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId penId);
member this.GetPenCopy : Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId -> System.Drawing.Pen
Public Function GetPenCopy (penId As StyleSetResourceId) As Pen
参数
- penId
- StyleSetResourceId
返回
请求的笔的副本。