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
- ConcurrencyMode.cs
- TriState.cs
- WebScriptMetadataMessageEncodingBindingElement.cs
- DbParameterCollectionHelper.cs
- UnsafeNativeMethodsTablet.cs
- ChannelSinkStacks.cs
- XmlSchemaComplexType.cs
- FontFamily.cs
- PartitionerQueryOperator.cs
- DataContractSerializerOperationBehavior.cs
- MenuCommand.cs
- UnsafeNativeMethodsMilCoreApi.cs
- PerformanceCounterManager.cs
- DataTableCollection.cs
- ColumnMap.cs
- IfAction.cs
- TypeSchema.cs
- TdsParserStateObject.cs
- Pair.cs
- Underline.cs
- ChildTable.cs
- IndependentlyAnimatedPropertyMetadata.cs
- ClientSettingsStore.cs
- MimeXmlImporter.cs
- ChildrenQuery.cs
- QueryStringHandler.cs
- ProtocolsConfiguration.cs
- Module.cs
- HTTPNotFoundHandler.cs
- DecimalAnimationUsingKeyFrames.cs
- DocumentViewerAutomationPeer.cs
- ListViewCancelEventArgs.cs
- Keyboard.cs
- SecurityPermission.cs
- PropertyGridCommands.cs
- DrawingContextWalker.cs
- DataDesignUtil.cs
- WindowsAltTab.cs
- RawStylusInput.cs
- FormsAuthenticationCredentials.cs
- ThreadPool.cs
- ProtectedConfiguration.cs
- GridView.cs
- TextSearch.cs
- PageCache.cs
- StringResourceManager.cs
- PreviewPageInfo.cs
- QilTargetType.cs
- NetworkInterface.cs
- DeclarativeCatalogPart.cs
- ListItemViewAttribute.cs
- OutKeywords.cs
- _TimerThread.cs
- TextEffectCollection.cs
- InfoCardMetadataExchangeClient.cs
- TextCollapsingProperties.cs
- RequiredFieldValidator.cs
- DesigntimeLicenseContextSerializer.cs
- VectorAnimationBase.cs
- EntityContainerEmitter.cs
- NetMsmqBindingElement.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- MD5CryptoServiceProvider.cs
- SpellerError.cs
- InputLanguageEventArgs.cs
- HttpValueCollection.cs
- AutomationPatternInfo.cs
- DataColumnPropertyDescriptor.cs
- DeferredReference.cs
- InfoCardAsymmetricCrypto.cs
- GlyphRun.cs
- EntityModelSchemaGenerator.cs
- TextBoxBaseDesigner.cs
- OperatingSystem.cs
- PrinterUnitConvert.cs
- HierarchicalDataBoundControlAdapter.cs
- BitmapEffect.cs
- GridViewCommandEventArgs.cs
- MultipartContentParser.cs
- FormsAuthenticationTicket.cs
- TextEditorTyping.cs
- SecurityTokenResolver.cs
- RestHandlerFactory.cs
- HybridCollection.cs
- UserControlBuildProvider.cs
- CapacityStreamGeometryContext.cs
- HwndTarget.cs
- Size3DValueSerializer.cs
- IntPtr.cs
- Rect.cs
- ActivityLocationReferenceEnvironment.cs
- ExpressionQuoter.cs
- IdleTimeoutMonitor.cs
- PointAnimation.cs
- PropertiesTab.cs
- TemplateControlCodeDomTreeGenerator.cs
- TextOnlyOutput.cs
- ExpressionCopier.cs
- ServiceCredentials.cs
- ToolboxControl.cs