VisioPageQueryExtensions
OfficeIMO.Visio
Query and selection helpers for editing Visio pages by semantics instead of by list indexes.
Inheritance
- object
- VisioPageQueryExtensions
Methods
public static IReadOnlyList<VisioShape> AllShapes(VisioPage page) #Returns all shapes on the page, including shapes nested inside groups.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> Callouts(VisioPage page) #Returns shapes marked as OfficeIMO callouts or annotations.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> ConnectedComponent(VisioPage page, VisioShape shape, bool includeStart = true) #Returns every shape reachable from the provided shape through connectors.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- shape OfficeIMO.Visio.VisioShape
- Starting shape.
- includeStart bool = true
- Whether the starting shape should be included in the returned component.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioConnector> ConnectedConnectors(VisioPage page, VisioShape shape) #Returns connectors that either start or end at the provided shape.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- shape OfficeIMO.Visio.VisioShape
- Shape connected to or from.
Returns
IReadOnlyList<VisioConnector>public static IReadOnlyList<VisioShape> ConnectedShapes(VisioPage page, VisioShape shape) #Returns shapes connected to the provided shape.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- shape OfficeIMO.Visio.VisioShape
- Shape whose neighbors should be returned.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioConnector> ConnectorsInLayer(VisioPage page, string layerName, StringComparison comparison = OrdinalIgnoreCase) #Returns connectors assigned to a page layer.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- layerName string
- Layer name or universal name.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
IReadOnlyList<VisioConnector>public static IReadOnlyList<VisioConnector> ConnectorsWithHyperlink(VisioPage page, string address, StringComparison comparison = OrdinalIgnoreCase) #Returns connectors that contain a hyperlink with the provided address.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- address string
- Hyperlink address.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
IReadOnlyList<VisioConnector>public static IReadOnlyList<VisioConnector> ConnectorsWithHyperlinks(VisioPage page) #Returns connectors that contain at least one hyperlink.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
Returns
IReadOnlyList<VisioConnector>public static IReadOnlyList<VisioConnector> ConnectorsWithProtection(VisioPage page) #Returns connectors that have at least one explicit protection cell.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
Returns
IReadOnlyList<VisioConnector>public static IReadOnlyList<VisioConnector> ConnectorsWithProtection(VisioPage page, Func<VisioProtection, bool> predicate) #Returns connectors whose protection state matches the predicate.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- predicate System.Func<OfficeIMO.Visio.VisioProtection, bool>
- Protection predicate.
Returns
IReadOnlyList<VisioConnector>public static IReadOnlyList<VisioShape> Containers(VisioPage page) #Returns shapes marked as Visio-native containers.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
Returns
IReadOnlyList<VisioShape>public static VisioShape? FindShapeById(VisioPage page, string id) #Finds a shape by identifier, including shapes nested inside groups.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- id string
- Shape identifier.
Returns
VisioShape?public static IReadOnlyList<VisioConnector> IncomingConnectors(VisioPage page, VisioShape shape) #Returns connectors that end at the provided shape.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- shape OfficeIMO.Visio.VisioShape
- Shape connected to.
Returns
IReadOnlyList<VisioConnector>public static IReadOnlyList<VisioConnector> OutgoingConnectors(VisioPage page, VisioShape shape) #Returns connectors that start at the provided shape.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- shape OfficeIMO.Visio.VisioShape
- Shape connected from.
Returns
IReadOnlyList<VisioConnector>public static IReadOnlyList<VisioShape> PathBetween(VisioPage page, VisioShape from, VisioShape to, bool includeEndpoints = true) #Returns the shortest shape path between two connected shapes, or an empty list when no path exists.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- from OfficeIMO.Visio.VisioShape
- Starting shape.
- to OfficeIMO.Visio.VisioShape
- Target shape.
- includeEndpoints bool = true
- Whether the starting and target shapes should be included.
Returns
IReadOnlyList<VisioShape>public static VisioShapeSelection SelectByMaster(VisioPage page, string masterNameU, StringComparison comparison = OrdinalIgnoreCase) #Selects shapes created from a matching master universal name.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- masterNameU string
- Master universal name.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectByName(VisioPage page, string name, StringComparison comparison = OrdinalIgnoreCase) #Selects shapes with a matching shape name.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- name string
- Shape name.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectByNameU(VisioPage page, string nameU, StringComparison comparison = OrdinalIgnoreCase) #Selects shapes with a matching universal shape name.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- nameU string
- Universal shape name.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectCallouts(VisioPage page) #Selects shapes marked as OfficeIMO callouts or annotations.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectConnectedComponent(VisioPage page, VisioShape shape, bool includeStart = true) #Selects every shape reachable from the provided shape through connectors.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- shape OfficeIMO.Visio.VisioShape
- Starting shape.
- includeStart bool = true
- Whether the starting shape should be included in the returned component.
Returns
VisioShapeSelectionpublic static VisioConnectorSelection SelectConnectedConnectors(VisioPage page, VisioShape shape) #Selects connectors that either start or end at the provided shape.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- shape OfficeIMO.Visio.VisioShape
- Shape connected to or from.
Returns
VisioConnectorSelectionpublic static VisioConnectorSelection SelectConnectors(VisioPage page, Func<VisioConnector, bool> predicate) #Selects connectors matching a predicate for bulk editing.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- predicate System.Func<OfficeIMO.Visio.VisioConnector, bool>
- Predicate used to include connectors.
Returns
VisioConnectorSelectionpublic static VisioConnectorSelection SelectConnectorsInLayer(VisioPage page, string layerName, StringComparison comparison = OrdinalIgnoreCase) #Selects connectors assigned to a page layer.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- layerName string
- Layer name or universal name.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
VisioConnectorSelectionpublic static VisioConnectorSelection SelectConnectorsWithHyperlink(VisioPage page, string address, StringComparison comparison = OrdinalIgnoreCase) #Selects connectors that contain a hyperlink with the provided address.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- address string
- Hyperlink address.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
VisioConnectorSelectionpublic static VisioConnectorSelection SelectConnectorsWithHyperlinks(VisioPage page) #Selects connectors that contain at least one hyperlink.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
Returns
VisioConnectorSelectionpublic static VisioConnectorSelection SelectConnectorsWithProtection(VisioPage page) #Selects connectors that have at least one explicit protection cell.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
Returns
VisioConnectorSelectionpublic static VisioConnectorSelection SelectConnectorsWithProtection(VisioPage page, Func<VisioProtection, bool> predicate) #Selects connectors whose protection state matches the predicate.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- predicate System.Func<OfficeIMO.Visio.VisioProtection, bool>
- Protection predicate.
Returns
VisioConnectorSelectionpublic static VisioShapeSelection SelectContainedIn(VisioPage page, VisioShapeBounds bounds) #Selects shapes whose bounds are fully contained by the provided bounds.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- bounds OfficeIMO.Visio.VisioShapeBounds
- Containing bounds.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectContainedIn(VisioPage page, VisioShape container, bool includeContainer = false) #Selects shapes whose bounds are fully contained by the provided shape.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- container OfficeIMO.Visio.VisioShape
- Shape whose bounds are used as the containing area.
- includeContainer bool = false
- Whether the containing shape itself should be included.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectContainers(VisioPage page) #Selects shapes marked as Visio-native containers.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectContainingText(VisioPage page, string text, StringComparison comparison = OrdinalIgnoreCase) #Selects shapes whose text contains the provided value.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- text string
- Text fragment to find.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
VisioShapeSelectionpublic static VisioConnectorSelection SelectIncomingConnectors(VisioPage page, VisioShape shape) #Selects connectors that end at the provided shape.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- shape OfficeIMO.Visio.VisioShape
- Shape connected to.
Returns
VisioConnectorSelectionpublic static VisioShapeSelection SelectIntersecting(VisioPage page, VisioShapeBounds bounds) #Selects shapes whose bounds intersect the provided bounds.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- bounds OfficeIMO.Visio.VisioShapeBounds
- Bounds to test against.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectIntersecting(VisioPage page, VisioShape shape, bool includeSelf = false) #Selects shapes whose bounds intersect the provided shape.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- shape OfficeIMO.Visio.VisioShape
- Shape whose bounds are used for the test.
- includeSelf bool = false
- Whether the reference shape itself should be included.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectLayer(VisioPage page, string layerName, StringComparison comparison = OrdinalIgnoreCase) #Selects shapes assigned to a page layer.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- layerName string
- Layer name or universal name.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
VisioShapeSelectionpublic static VisioConnectorSelection SelectOutgoingConnectors(VisioPage page, VisioShape shape) #Selects connectors that start at the provided shape.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- shape OfficeIMO.Visio.VisioShape
- Shape connected from.
Returns
VisioConnectorSelectionpublic static VisioShapeSelection SelectPathBetween(VisioPage page, VisioShape from, VisioShape to, bool includeEndpoints = true) #Selects the shortest shape path between two connected shapes.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- from OfficeIMO.Visio.VisioShape
- Starting shape.
- to OfficeIMO.Visio.VisioShape
- Target shape.
- includeEndpoints bool = true
- Whether the starting and target shapes should be included.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectShapes(VisioPage page, Func<VisioShape, bool> predicate) #Selects shapes matching a predicate for bulk editing.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- predicate System.Func<OfficeIMO.Visio.VisioShape, bool>
- Predicate used to include shapes.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectWithData(VisioPage page, string key) #Selects shapes that contain the provided data key.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- key string
- Data key.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectWithData(VisioPage page, string key, string value, StringComparison comparison = OrdinalIgnoreCase) #Selects shapes that contain the provided data key and value.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- key string
- Data key.
- value string
- Data value.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectWithData(VisioPage page, string key, Func<string?, bool> predicate) #Selects shapes whose Shape Data value for the provided key matches a predicate.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- key string
- Data key.
- predicate System.Func<string?, bool>
- Predicate that receives the current Shape Data value.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectWithHyperlink(VisioPage page, string address, StringComparison comparison = OrdinalIgnoreCase) #Selects shapes that contain a hyperlink with the provided address.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- address string
- Hyperlink address.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectWithHyperlinks(VisioPage page) #Selects shapes that contain at least one hyperlink.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectWithProtection(VisioPage page) #Selects shapes that have at least one explicit protection cell.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectWithProtection(VisioPage page, Func<VisioShapeProtection, bool> predicate) #Selects shapes whose protection state matches the predicate.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- predicate System.Func<OfficeIMO.Visio.VisioShapeProtection, bool>
- Protection predicate.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectWithShapeData(VisioPage page, string name) #Selects shapes that contain a Visio Shape Data row.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- name string
- Shape Data row name.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectWithShapeData(VisioPage page, string name, string value, StringComparison comparison = OrdinalIgnoreCase) #Selects shapes with a matching Visio Shape Data value.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- name string
- Shape Data row name.
- value string
- Shape Data value.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectWithShapeData(VisioPage page, string name, Func<string?, bool> predicate) #Selects shapes whose Visio Shape Data value for the provided row name matches a predicate.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- name string
- Shape Data row name.
- predicate System.Func<string?, bool>
- Predicate that receives the current Shape Data value.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectWithUserCell(VisioPage page, string name) #Selects shapes that contain a Visio User cell.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- name string
- User cell row name.
Returns
VisioShapeSelectionpublic static VisioShapeSelection SelectWithUserCell(VisioPage page, string name, string value, StringComparison comparison = OrdinalIgnoreCase) #Selects shapes with a matching Visio User cell value.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- name string
- User cell row name.
- value string
- User cell value.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
VisioShapeSelectionpublic static IReadOnlyList<VisioShape> ShapesByMaster(VisioPage page, string masterNameU, StringComparison comparison = OrdinalIgnoreCase) #Returns shapes created from a matching master universal name.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- masterNameU string
- Master universal name.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> ShapesByName(VisioPage page, string name, StringComparison comparison = OrdinalIgnoreCase) #Returns shapes with a matching shape name.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- name string
- Shape name.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> ShapesByNameU(VisioPage page, string nameU, StringComparison comparison = OrdinalIgnoreCase) #Returns shapes with a matching universal shape name.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- nameU string
- Universal shape name.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> ShapesContainedIn(VisioPage page, VisioShapeBounds bounds) #Returns shapes whose bounds are fully contained by the provided bounds.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- bounds OfficeIMO.Visio.VisioShapeBounds
- Containing bounds.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> ShapesContainedIn(VisioPage page, VisioShape container, bool includeContainer = false) #Returns shapes whose bounds are fully contained by the provided shape.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- container OfficeIMO.Visio.VisioShape
- Shape whose bounds are used as the containing area.
- includeContainer bool = false
- Whether the containing shape itself should be included.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> ShapesContainingText(VisioPage page, string text, StringComparison comparison = OrdinalIgnoreCase) #Returns shapes whose text contains the provided value.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- text string
- Text fragment to find.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> ShapesInLayer(VisioPage page, string layerName, StringComparison comparison = OrdinalIgnoreCase) #Returns shapes assigned to a page layer.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- layerName string
- Layer name or universal name.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> ShapesIntersecting(VisioPage page, VisioShapeBounds bounds) #Returns shapes whose bounds intersect the provided bounds.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- bounds OfficeIMO.Visio.VisioShapeBounds
- Bounds to test against.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> ShapesIntersecting(VisioPage page, VisioShape shape, bool includeSelf = false) #Returns shapes whose bounds intersect the provided shape.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- shape OfficeIMO.Visio.VisioShape
- Shape whose bounds are used for the test.
- includeSelf bool = false
- Whether the reference shape itself should be included.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> ShapesWithData(VisioPage page, string key) #Returns shapes that contain the provided data key.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- key string
- Data key.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> ShapesWithData(VisioPage page, string key, string value, StringComparison comparison = OrdinalIgnoreCase) #Returns shapes that contain the provided data key and value.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- key string
- Data key.
- value string
- Data value.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> ShapesWithData(VisioPage page, string key, Func<string?, bool> predicate) #Returns shapes whose Shape Data value for the provided key matches a predicate.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- key string
- Data key.
- predicate System.Func<string?, bool>
- Predicate that receives the current Shape Data value.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> ShapesWithHyperlink(VisioPage page, string address, StringComparison comparison = OrdinalIgnoreCase) #Returns shapes that contain a hyperlink with the provided address.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- address string
- Hyperlink address.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> ShapesWithHyperlinks(VisioPage page) #Returns shapes that contain at least one hyperlink.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> ShapesWithProtection(VisioPage page) #Returns shapes that have at least one explicit protection cell.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> ShapesWithProtection(VisioPage page, Func<VisioShapeProtection, bool> predicate) #Returns shapes whose protection state matches the predicate.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- predicate System.Func<OfficeIMO.Visio.VisioShapeProtection, bool>
- Protection predicate.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> ShapesWithShapeData(VisioPage page, string name) #Returns shapes that contain a Visio Shape Data row.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- name string
- Shape Data row name.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> ShapesWithShapeData(VisioPage page, string name, string value, StringComparison comparison = OrdinalIgnoreCase) #Returns shapes with a matching Visio Shape Data value.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- name string
- Shape Data row name.
- value string
- Shape Data value.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> ShapesWithShapeData(VisioPage page, string name, Func<string?, bool> predicate) #Returns shapes whose Visio Shape Data value for the provided row name matches a predicate.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- name string
- Shape Data row name.
- predicate System.Func<string?, bool>
- Predicate that receives the current Shape Data value.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> ShapesWithUserCell(VisioPage page, string name) #Returns shapes that contain a Visio User cell.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- name string
- User cell row name.
Returns
IReadOnlyList<VisioShape>public static IReadOnlyList<VisioShape> ShapesWithUserCell(VisioPage page, string name, string value, StringComparison comparison = OrdinalIgnoreCase) #Returns shapes with a matching Visio User cell value.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to query.
- name string
- User cell row name.
- value string
- User cell value.
- comparison System.StringComparison = OrdinalIgnoreCase
- String comparison used for matching.
Returns
IReadOnlyList<VisioShape>