- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
客观的:
首先,我应该说我想做什么,然后我会在接下来的中描述我为实现我的目标做了什么。 (说明)部分。
我想创建一个 自定义列表母版形状 来自 普通容器功能区的“插入”选项卡中的“图表部件”部分。然后,我想创建 另一个主控形状 可以用作 的成员形状创建自定义列表母版形状 .
换句话说,我想添加 我创建的主控形状 至 我的自定义列表母版形状 喜欢附上 成员和分隔符主形状 到 类(class)大师造型的 UML 模板。
因此,我在实现我的目标时遇到了一些问题,我将在下一部分中对其进行描述。
说明:
我创建了一些 “Visio 模板 (.vssx)”中的新主形状 文件如下:
图 1 - 新创建的主控形状和使用过的主控形状
=MID(SUBSTITUTE(TRIM(SHAPETEXT(TheText)),"[",""),1,FIND(" ",SUBSTITUTE(TRIM(SHAPETEXT(TheText)),"[",""))-1)
=SHAPETEXT(TheText)
=IF(LISTMEMBERCOUNT()=0,DOCMD(2270),0)
=USE("Property")
为
"User.msvSDListItemMaster"在
用户定义的单元格部分 ShapeSheet 窗口的;但是,我认为这是行不通的。
最佳答案
第一个问题的答案:
这个问题总是因为不注意 “分类”单词。在大多数情况下,人们不会注意这个词并使用 《造型大师姓名》而不是 《形状分类》 ;然而,它们彼此不同。
就我而言,我被输入了形状大师名称 ( Property
) 为 User.msvSDContainerRequiredCategories
(以分号分隔的类别名称列表。其他形状必须至少有一个匹配名称才能被允许作为容器成员。)和 User.msvSDListRequiredCategories
(以分号分隔的类别名称列表。其他形状必须至少有一个匹配名称才能作为列表成员。)而不是形状类别 ( User.msvShapeCategories = Member
) .
图 1 - 比较“Shape Master Name”和“Shape Category”
第二个问题的答案:
为了解决这个问题,我们必须注意两点:
首先,我们必须在实例化主形状后添加我们想要自动添加的形状。因此,我们必须为每个想要添加名称的形状添加行 User.msvSDListItemMaster[Index]
(要为插入命令创建实例的主控形状的名称或 UniqueID。该值必须放在 USE() 函数内。)。
如您所见,我只想添加一种形状。所以,我必须改变User.msvSDListItemMaster
的名字行至 User.msvSDListItemMaster1
.如果我想在实例化时间内添加更多形状,我必须添加另一行,如 User.msvSDListItemMaster2
, User.msvSDListItemMaster3
等等。
其次,也是最后一件事,我们必须在 中添加一个公式。 "EventDrop" 的单元格《事件》部分。如您所见,我已将其添加到我的自定义列表形状中,如 here 中所述和 here :
Specifying an Insertion Shape
There are several ways to add a shape to a list: dragging and dropping the shape, clicking the blue insertion triangle that appears near the list edge, or right-clicking an existing member and inserting a shape. Clicking the insertion triangle and right-clicking to insert a shape both use the
User.msvSDListItemMaster
cell to determine what shape to add to the list. The name of the master is placed in quotes inside aUSE()
function (for example,USE("List member master")
). If no shape is specified in User.msvSDListItemMaster, Visio will duplicate an adjacent shape in the list when inserting the shape.It is also possible to automatically populate the list with some member shapes when the list is first dropped on the page. To do this, put the following formula in the EventDrop cell of the list, repeating the
DOCMD(2270)
once for each member to be added:
IF(LISTMEMBERCOUNT()=0,DOCMD(2270)+DOCMD(2270)+DOCMD(2270),0)
2270
is the command for inserting before an item in a list (visUiCmds.visCmdListInsertBefore
). It is also possible to use2271
, the command for inserting after an item in a list (visUiCmds.visCmdListInsertAfter
).
2270
数字。 我不知道为什么它不起作用;但是,当我检查
中的上述单元格时《事件》 UML Stencil 的 Class Master Shape 部分,我看到有人用过
2499
而不是
2270
.所以,我在我的公式中使用了这个数字,它奏效了。如果我有多个形状用于
User.msvSDListItemMaster[Index]
行,我必须添加
+DOCMD(2499)
对于形状 1 之后的每个形状。
Controlling List Membership
Lists have their own cells to govern list membership. Use the
User.msvSDListRequiredCategories
andUser.msvSDListExcludedCategories
cells to restrict what shapes can become list members. Because lists are also containers, it is possible for shapes to become container members of the list. The standardUser.msvSDContainerRequiredCategories
andUser.msvSDContainerExcludedCategories
cells determine this behavior. By default, Visio will attempt to add a shape to a list as a list member, but if that fails it may try to add it as a container member. The difference between a list member and a container member is that only list members will be arranged by the list and affect its size. Shape designers should manage both sets of membership cells to ensure the right results.
User.msvSDListRequiredCategories
和
User.msvSDContainerRequiredCategories
行
获得最佳效率 .
Custom Lists
Any shape that has a value of
"List"
for theUser.msvStructureType
cell is treated by Visio as a list. A list orders and arranges its member shapes automatically. Note that lists are also considered to be containers, and they have similar capabilities such as automatically moving, copying, or deleting member shapes. All of the previously mentioned container cells apply to list shapes.Table 1. ShapeSheet container properties
User.msvSDContainerMargin
The distance between the container boundary and member shapes.
User.msvSDContainerResize
The automatic-resize behavior for the shape:
0 = No automatic resize.
1 = Expand as needed.
2 = Always fit to contents.
User.msvSDContainerStyle
A one-based index value for the current visual style of the container.
User.msvSDContainerStyleCount
The total number of visual styles that the container supports.
User.msvSDHeadingStyle
A one-based index value for the current visual style of the container heading.
User.msvSDHeadingStyleCount
The total number of visual styles that the container heading supports.
User.msvSDContainerLocked
A Boolean value that prevents membership changes in the container.
User.msvSDContainerRequiredCategories
A semicolon-delimited list of category names. Other shapes must have at least one matching name to be allowed as container members.
User.msvSDContainerExcludedCategories
A semicolon-delimited list of category names. Other shapes with at least one matching name are disallowed as container members.
User.msvSDContainerNoHighlight
A Boolean value that suppresses the container highlighting when member shapes are selected or added to the container.
User.msvSDContainerNoRibbon
A Boolean value that hides the Container Tools contextual tab in the ribbon for this container.
User.msvSDContainerHeadingEdge
A string that designates the location of the interior of the container from the perspective of the container heading. Must be "Left", "Right", "Top", or "Bottom".
User.msvSDMembersOnHiddenLayer
A Boolean value that determines whether Visio severs container relationships when the container or member is placed on a hidden layer. If True, Visio allows relationships to exist on the hidden layer. If False, Visio severs the relationships.
关于shape - 新创建的自定义列表形状在 Microsoft Visio 2013 x64 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28877699/
我正在尝试将 Outlook API 与我的 React 应用程序集成。当我尝试使用 microsoft-graph-client 实现身份验证时,遇到以下错误。 'ImplicitMSALAuthe
我正在尝试使用 Microsoft Graph Beta API 在 Microsoft Teams 中创建 channel 。在文档中,它说 channel 实体具有属性 IsFavoriteByD
我的目标很简单。我想使用图形 API 将自动聊天消息发送到 MS Teams channel 。 这似乎是图形 API 的测试版功能,仅在 Microsoft.Graph.Beta 中可用。 我已经阅
通过委派权限获取 Teams channel 消息时(用户是团队成员): https://graph.microsoft.com/beta/teams/ {team_id}/channels/{cha
我正在使用带有 OData 端点的 Web API 和 Entity Framework 创建一个 RESTful 服务。 Microsoft.AspNet.WebApi.OData 和 Micros
我可以通过对标题和作者姓名的评估查询(以及解释查询)获得良好的结果。 但是如果我想通过 DOI 查找论文怎么办? 我可以通过扩展元数据描述(在现有搜索的属性中)获取条目的DOI信息,但是由于扩展元数据
我正在尝试通过displayName查询用户,但是在同时使用C#SDK和Graph Explorer发送请求时,我无法转义单引号。 更新:在示例中不清楚,我遇到麻烦的搜索词是I' 查询示例: http
我在使用 Microsoft fakes 的解决方案中有一个单元测试项目,当我构建它时出现以下错误。它提示无法加载的 DLL 在磁盘上。我已经打开了 Fusion 日志记录,这表明绑定(bind)成功
我想创建一个应用程序,当用户在 MS Teams 中接到电话时会收到通知。我的意思是我想在来电事件上订阅一些东西,然后根据来电信息做一些事情。这可能吗?到目前为止,我在 SDK 中没有看到任何事件。
如果我开发一个网站,它是否会以相同的方式在 IE11、Chrome、Firefox 和 edge 上运行,还是我们需要专门为 IE11 编写代码?我没有 Windows 8,因此无法在边缘浏览器上测试
我几个月前为某些收件箱创建了一些订阅,系统成功收到了有关收到电子邮件的通知,订阅也定期更新以增加到期日期。这是我的订阅列表: https://graph.microsoft.com/v1.0/subs
如果我开发一个网站,它是否会以相同的方式在 IE11、Chrome、Firefox 和 edge 上运行,还是我们需要专门为 IE11 编写代码?我没有 Windows 8,因此无法在边缘浏览器上测试
如果 Edge 在某些机器上发生崩溃,我们需要检查日志以了解发生了什么情况。 最佳答案 Microsoft Edge 实际上是一个 Windows 进程,因此您应该能够在事件查看器中查看日志。此外,您
我已经将一些测试用例与项目中的单元测试相关联。该项目已构建并复制到共享上的放置位置。当我去运行这些测试时,由于作为这些测试的一部分包含的非托管 DLL 的 System.DllNotFoundExce
我对 asp.net 核心标识中的三个包感到困惑。我不知道彼此之间有什么区别。还有哪些是我们应该使用的? 我在 GitHub 上找到了这个链接,但我没有找到。 Difference between M
在我的 Windows 类库(由 MVC 网站使用)中,我安装了 NugetPackage Microsoft.SqlServer.Types (Spatial)。 现在,我正在使用 ado.net
我有一个简单的 web 应用程序,我在 Teams 中显示为一个应用程序。我已经在 App Studio 中进行了设置,一切都按我的预期工作,一切都很好。它正在显示我的网络应用程序,这就是我想要的。
有什么不同?它们都是业务管理解决方案。他们做的一样吗?一些不同的版本?他们使用同一个平台吗? 动态 Assets 净值 Microsoft Dynamics NAV 2009 is a compreh
如何制定包含非英语字符(例如日耳曼语Umlauts)的Microsoft Graph /myOrganization/users OData查询? 例子: 我的租户中有一个名为“ThomasMülle
我想创建一个类似于乐队附带的星巴克应用程序的应用程序。我想显示条形码。我可以在云端或本地设备上将条形码生成为 JPG 图像,但我需要能够在乐队的屏幕上显示它们。到目前为止,我还没有找到使用 Band
我是一名优秀的程序员,十分优秀!