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
- SoapBinding.cs
- Expression.cs
- TreeBuilderXamlTranslator.cs
- SHA256Cng.cs
- ElementMarkupObject.cs
- EditingMode.cs
- SoapSchemaExporter.cs
- TextTreeDeleteContentUndoUnit.cs
- NetCodeGroup.cs
- RtfFormatStack.cs
- StreamWriter.cs
- InternalResources.cs
- TextPointer.cs
- TypeGeneratedEventArgs.cs
- UriSection.cs
- FunctionOverloadResolver.cs
- FormsAuthenticationUserCollection.cs
- documentation.cs
- WebContext.cs
- ModifiableIteratorCollection.cs
- WebRequestModuleElement.cs
- Rect.cs
- __Error.cs
- TemplatedMailWebEventProvider.cs
- ServiceManager.cs
- Sentence.cs
- InProcStateClientManager.cs
- RSAPKCS1SignatureDeformatter.cs
- FilterableAttribute.cs
- DataGridViewRowCollection.cs
- BridgeDataReader.cs
- MetaDataInfo.cs
- FactoryMaker.cs
- NetworkInformationPermission.cs
- WebPartTransformerCollection.cs
- XmlSchemaSimpleTypeList.cs
- ApplicationServiceManager.cs
- AsyncSerializedWorker.cs
- SchemaCollectionPreprocessor.cs
- SrgsSubset.cs
- SqlConnectionPoolGroupProviderInfo.cs
- MethodBuilderInstantiation.cs
- StylusCaptureWithinProperty.cs
- GridViewSelectEventArgs.cs
- List.cs
- TextTreeObjectNode.cs
- InsufficientMemoryException.cs
- Freezable.cs
- EllipticalNodeOperations.cs
- MediaContext.cs
- DiscreteKeyFrames.cs
- MaskedTextBoxDesignerActionList.cs
- OracleConnectionFactory.cs
- TransformCryptoHandle.cs
- ExpressionWriter.cs
- HGlobalSafeHandle.cs
- WebServiceClientProxyGenerator.cs
- Tablet.cs
- RuleSet.cs
- DebugHandleTracker.cs
- RowToFieldTransformer.cs
- SharedPersonalizationStateInfo.cs
- XamlTreeBuilder.cs
- LayoutSettings.cs
- SamlAssertion.cs
- TypeUtils.cs
- TabControlAutomationPeer.cs
- MethodRental.cs
- CroppedBitmap.cs
- DatasetMethodGenerator.cs
- HwndSubclass.cs
- SystemWebSectionGroup.cs
- InputBindingCollection.cs
- CustomError.cs
- TraceHandlerErrorFormatter.cs
- DataServiceConfiguration.cs
- ExpressionBindingsDialog.cs
- SHA256.cs
- ColorTransform.cs
- DrawingAttributesDefaultValueFactory.cs
- EditModeSwitchButton.cs
- NameGenerator.cs
- BindableAttribute.cs
- DomainConstraint.cs
- AdapterUtil.cs
- DefaultAssemblyResolver.cs
- xmlfixedPageInfo.cs
- StylusButton.cs
- ObjectSecurity.cs
- BackgroundWorker.cs
- ButtonAutomationPeer.cs
- Material.cs
- DbModificationClause.cs
- BooleanConverter.cs
- Propagator.cs
- IndexedGlyphRun.cs
- HostProtectionException.cs
- SymLanguageType.cs
- DbProviderConfigurationHandler.cs
- FormatPage.cs