Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / GeometryGroup.cs / 1 / GeometryGroup.cs
//---------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // Description: Implementation of GeometryGroup // // History: // 2004/11/11-[....] // Created it // //--------------------------------------------------------------------------- using System; using MS.Internal; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Reflection; using System.Collections; using System.Text; using System.Globalization; using System.Windows.Media; using System.Windows; using System.Windows.Media.Composition; using System.Text.RegularExpressions; using System.Windows.Media.Animation; using System.Windows.Markup; using System.Runtime.InteropServices; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { #region GeometryGroup ////// GeometryGroup /// [ContentProperty("Children")] public sealed partial class GeometryGroup : Geometry { #region Constructors ////// Default constructor /// public GeometryGroup() { } #endregion #region Overrides ////// GetPathGeometryData - returns a struct which contains this Geometry represented /// as a path geometry's serialized format. /// internal override PathGeometryData GetPathGeometryData() { PathGeometry pathGeometry = GetAsPathGeometry(); return pathGeometry.GetPathGeometryData(); } internal override PathGeometry GetAsPathGeometry() { PathGeometry pg = new PathGeometry(); pg.AddGeometry(this); pg.FillRule = FillRule; Debug.Assert(pg.CanFreeze); return pg; } #endregion #region GetPathFigureCollection internal override PathFigureCollection GetTransformedFigureCollection(Transform transform) { // Combine the transform argument with the internal transform Transform combined = new MatrixTransform(GetCombinedMatrix(transform)); PathFigureCollection result = new PathFigureCollection(); GeometryCollection children = Children; if (children != null) { for (int i = 0; i < children.Count; i++) { PathFigureCollection pathFigures = children.Internal_GetItem(i).GetTransformedFigureCollection(combined); if (pathFigures != null) { int count = pathFigures.Count; for (int j = 0; j < count; ++j) { result.Add(pathFigures[j]); } } } } return result; } #endregion #region IsEmpty ////// Returns true if this geometry is empty /// public override bool IsEmpty() { GeometryCollection children = Children; if (children == null) { return true; } for (int i=0; i/// Returns true if this geometry may have curved segments /// public override bool MayHaveCurves() { GeometryCollection children = Children; if (children == null) { return false; } for (int i = 0; i < children.Count; i++) { if (((Geometry)children[i]).MayHaveCurves()) { return true; } } return false; } } #endregion } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RadioButton.cs
- sqlinternaltransaction.cs
- Membership.cs
- BookmarkManager.cs
- ToolTip.cs
- SqlStatistics.cs
- recordstatefactory.cs
- _StreamFramer.cs
- XPathDocumentBuilder.cs
- XmlQueryType.cs
- CodeIndexerExpression.cs
- PerformanceCounterLib.cs
- ButtonFlatAdapter.cs
- ColorMatrix.cs
- TypeElementCollection.cs
- TreeNodeMouseHoverEvent.cs
- ResourceType.cs
- MenuEventArgs.cs
- KeyFrames.cs
- Range.cs
- DbConnectionPoolGroupProviderInfo.cs
- EmptyStringExpandableObjectConverter.cs
- Transactions.cs
- BookmarkScopeHandle.cs
- DataSetUtil.cs
- ResourceProviderFactory.cs
- VersionedStream.cs
- TimestampInformation.cs
- FacetChecker.cs
- IndentTextWriter.cs
- GeometryDrawing.cs
- ScrollChrome.cs
- HtmlEncodedRawTextWriter.cs
- BindToObject.cs
- ColumnWidthChangedEvent.cs
- CommonServiceBehaviorElement.cs
- SHA1.cs
- ConfigsHelper.cs
- BitmapEffectDrawing.cs
- SoapAttributeAttribute.cs
- RTLAwareMessageBox.cs
- FixedSOMTable.cs
- HideDisabledControlAdapter.cs
- MultilineStringConverter.cs
- activationcontext.cs
- WebPartDisplayMode.cs
- PolicyException.cs
- FamilyTypeface.cs
- ExceptionUtil.cs
- StorageEndPropertyMapping.cs
- Matrix3DConverter.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- x509utils.cs
- RichTextBox.cs
- NeedSkipTokenVisitor.cs
- RightsManagementProvider.cs
- XDRSchema.cs
- TdsParserHelperClasses.cs
- ellipse.cs
- metadatamappinghashervisitor.cs
- OneOf.cs
- Frame.cs
- ValidationPropertyAttribute.cs
- COM2PictureConverter.cs
- AuthenticationModuleElementCollection.cs
- ErrorWebPart.cs
- DynamicRendererThreadManager.cs
- SqlCacheDependencySection.cs
- SafeMarshalContext.cs
- LoadWorkflowByInstanceKeyCommand.cs
- DatePickerDateValidationErrorEventArgs.cs
- NegatedConstant.cs
- ToolBarTray.cs
- WebPartDescriptionCollection.cs
- GridView.cs
- ResetableIterator.cs
- PathFigureCollection.cs
- MessageDecoder.cs
- CLRBindingWorker.cs
- UnauthorizedWebPart.cs
- TogglePattern.cs
- TemplateNameScope.cs
- remotingproxy.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- NotifyCollectionChangedEventArgs.cs
- View.cs
- ProcessHostFactoryHelper.cs
- TimeZoneNotFoundException.cs
- HtmlHead.cs
- AttributeConverter.cs
- TargetInvocationException.cs
- ColorAnimationBase.cs
- MouseActionValueSerializer.cs
- EntityTransaction.cs
- ActivityExecutor.cs
- SqlConnectionHelper.cs
- VectorValueSerializer.cs
- BrushValueSerializer.cs
- SqlServices.cs
- DefaultEvaluationContext.cs