Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / MS / Internal / Ink / InkSerializedFormat / StrokeDescriptor.cs / 1 / StrokeDescriptor.cs
//------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- using System; // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class StrokeDescriptor { private System.Collections.Generic.List_strokeDescriptor = new System.Collections.Generic.List (); private uint _Size = 0; public uint Size { get { return _Size; } set { _Size = value; } } public System.Collections.Generic.List Template { get { return _strokeDescriptor; } } public StrokeDescriptor() { } public bool IsEqual(StrokeDescriptor strd) { // If the no of templates in them are different return false if( _strokeDescriptor.Count != strd.Template.Count ) return false; // Compare each tag in the template. If any one of them is different, return false; for( int i = 0; i < _strokeDescriptor.Count; i++ ) if( _strokeDescriptor[i] != strd.Template[i] ) return false; return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- using System; // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class StrokeDescriptor { private System.Collections.Generic.List_strokeDescriptor = new System.Collections.Generic.List (); private uint _Size = 0; public uint Size { get { return _Size; } set { _Size = value; } } public System.Collections.Generic.List Template { get { return _strokeDescriptor; } } public StrokeDescriptor() { } public bool IsEqual(StrokeDescriptor strd) { // If the no of templates in them are different return false if( _strokeDescriptor.Count != strd.Template.Count ) return false; // Compare each tag in the template. If any one of them is different, return false; for( int i = 0; i < _strokeDescriptor.Count; i++ ) if( _strokeDescriptor[i] != strd.Template[i] ) return false; return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebConfigurationHost.cs
- WinInetCache.cs
- XmlNodeList.cs
- ToolboxDataAttribute.cs
- Convert.cs
- ReadOnlyCollectionBase.cs
- MimeTypeMapper.cs
- WindowsGraphics.cs
- DelayedRegex.cs
- XmlElementList.cs
- MetadataArtifactLoaderResource.cs
- EventListenerClientSide.cs
- InputLanguageProfileNotifySink.cs
- FormViewPageEventArgs.cs
- PrintDialog.cs
- UnsafeNativeMethods.cs
- ProviderSettings.cs
- MetricEntry.cs
- ResourcePermissionBaseEntry.cs
- cookiecontainer.cs
- SubpageParaClient.cs
- PermissionListSet.cs
- externdll.cs
- LogExtent.cs
- InvalidFilterCriteriaException.cs
- ScriptControlDescriptor.cs
- TypeValidationEventArgs.cs
- TextElementCollection.cs
- ListViewSortEventArgs.cs
- CompiledRegexRunner.cs
- HttpProxyCredentialType.cs
- Delegate.cs
- GiveFeedbackEventArgs.cs
- FixUp.cs
- MemberHolder.cs
- SiteMapNodeCollection.cs
- TypeUtil.cs
- ObjectSpanRewriter.cs
- Token.cs
- FileDialog_Vista_Interop.cs
- Ticks.cs
- XPathSingletonIterator.cs
- FusionWrap.cs
- DateTimeConverter.cs
- ListViewContainer.cs
- WebAdminConfigurationHelper.cs
- ReadOnlyCollection.cs
- CatalogZone.cs
- HttpRuntime.cs
- OpCellTreeNode.cs
- FailedToStartupUIException.cs
- ModelPerspective.cs
- HandleTable.cs
- figurelengthconverter.cs
- DocumentViewerHelper.cs
- XslTransform.cs
- BuildProvidersCompiler.cs
- SemanticResultValue.cs
- Timer.cs
- QuotedStringFormatReader.cs
- DataGridPagerStyle.cs
- ForeignConstraint.cs
- HeaderCollection.cs
- SqlCommandBuilder.cs
- TraceFilter.cs
- WebSysDescriptionAttribute.cs
- Int64Animation.cs
- DrawListViewSubItemEventArgs.cs
- XmlSchemaAll.cs
- XmlAutoDetectWriter.cs
- JsonWriter.cs
- Baml6ConstructorInfo.cs
- Config.cs
- Int32Rect.cs
- FlowDocument.cs
- ActivityDesignerLayoutSerializers.cs
- BinaryParser.cs
- MobileCategoryAttribute.cs
- RoleManagerModule.cs
- StorageComplexTypeMapping.cs
- RelatedView.cs
- COAUTHINFO.cs
- Guid.cs
- DataGridPageChangedEventArgs.cs
- DataDocumentXPathNavigator.cs
- AssemblyNameProxy.cs
- isolationinterop.cs
- WebBrowserUriTypeConverter.cs
- cache.cs
- OracleCommand.cs
- RadioButtonStandardAdapter.cs
- DiscoveryEndpoint.cs
- TaiwanLunisolarCalendar.cs
- StringResourceManager.cs
- DataStreamFromComStream.cs
- Permission.cs
- TimelineGroup.cs
- HyperlinkAutomationPeer.cs
- PersonalizationDictionary.cs
- TypedReference.cs