Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- InfoCard.cs
- StrongNamePublicKeyBlob.cs
- HttpListenerException.cs
- DoubleAnimation.cs
- ProgressBarHighlightConverter.cs
- PersonalizationProvider.cs
- ProfilePropertyMetadata.cs
- DbBuffer.cs
- WebPartEditorCancelVerb.cs
- CngKey.cs
- GeneralTransform3DTo2D.cs
- Accessible.cs
- CmsInterop.cs
- AutomationProperties.cs
- StructuralCache.cs
- BoundColumn.cs
- Collection.cs
- CornerRadius.cs
- Tablet.cs
- InboundActivityHelper.cs
- ContextMenu.cs
- Drawing.cs
- AppDomainAttributes.cs
- QilTernary.cs
- XmlAttribute.cs
- HttpDictionary.cs
- TransactionalPackage.cs
- TemplateBindingExpression.cs
- XmlSchemaComplexContent.cs
- DataGridColumnHeader.cs
- CorrelationValidator.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- XmlReader.cs
- EdmProviderManifest.cs
- DataSpaceManager.cs
- MarkedHighlightComponent.cs
- DataRowChangeEvent.cs
- FlatButtonAppearance.cs
- InfoCardProofToken.cs
- FormViewCommandEventArgs.cs
- TextRunTypographyProperties.cs
- LayoutExceptionEventArgs.cs
- Comparer.cs
- ServiceReference.cs
- FontStyleConverter.cs
- JournalEntry.cs
- EditingCommands.cs
- LookupBindingPropertiesAttribute.cs
- SHA1Managed.cs
- ConfigurationErrorsException.cs
- DbDataAdapter.cs
- CodePageEncoding.cs
- TogglePattern.cs
- Executor.cs
- CapabilitiesPattern.cs
- ExtendedPropertyCollection.cs
- ListViewItem.cs
- XmlSecureResolver.cs
- SamlAttribute.cs
- HotSpotCollection.cs
- SudsWriter.cs
- ProcessHostServerConfig.cs
- XmlArrayAttribute.cs
- IntegerCollectionEditor.cs
- TypeNameHelper.cs
- ClientProxyGenerator.cs
- SystemEvents.cs
- HtmlHead.cs
- DisplayToken.cs
- TreeViewImageIndexConverter.cs
- WebPartHelpVerb.cs
- DesignerDataTable.cs
- WindowsAuthenticationEventArgs.cs
- Stroke.cs
- SiblingIterators.cs
- SpeechEvent.cs
- ContainerParaClient.cs
- TemplateBindingExtensionConverter.cs
- Set.cs
- ControlParameter.cs
- DocumentReferenceCollection.cs
- EntityDesignerUtils.cs
- ProcessHostServerConfig.cs
- Int32CAMarshaler.cs
- DisplayInformation.cs
- TextTreeTextBlock.cs
- LoginView.cs
- XmlBindingWorker.cs
- SelectionItemProviderWrapper.cs
- AuthorizationSection.cs
- WorkflowRuntimeServiceElementCollection.cs
- PackWebResponse.cs
- InternalsVisibleToAttribute.cs
- BaseConfigurationRecord.cs
- PreviewPageInfo.cs
- QueryOperator.cs
- ApplicationServiceHelper.cs
- StrokeIntersection.cs
- infer.cs
- ClientConfigurationHost.cs