Aspose.Diagram.Examples.CSharp.Working_with_Text.GetPlainTextOfVisio.GetShapeText C# (CSharp) Method

GetShapeText() private static method

private static GetShapeText ( Aspose shape ) : void
shape Aspose
return void
        private static void GetShapeText(Aspose.Diagram.Shape shape)
        {
            // Filter shape text
            if (shape.Text.Value.Text != "")
                text += Regex.Replace(shape.Text.Value.Text, "\\<.*?>", "");

            // For image shapes
            if (shape.Type == TypeValue.Foreign)
                text += (shape.Name);

            // For group shapes
            if (shape.Type == TypeValue.Group)
                foreach (Aspose.Diagram.Shape subshape in shape.Shapes)
                {
                    GetShapeText(subshape);
                }
        }
        // ExEnd:GetPlainTextOfVisio
GetPlainTextOfVisio