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
- CssTextWriter.cs
- Knowncolors.cs
- LinkLabel.cs
- MonitorWrapper.cs
- DesignerRegion.cs
- WMICapabilities.cs
- SqlConnectionPoolGroupProviderInfo.cs
- HttpRuntime.cs
- PageContentCollection.cs
- ConsoleKeyInfo.cs
- DotAtomReader.cs
- SizeValueSerializer.cs
- WmlCalendarAdapter.cs
- InternalTypeHelper.cs
- XmlSerializerVersionAttribute.cs
- Tokenizer.cs
- SafeCancelMibChangeNotify.cs
- CompoundFileDeflateTransform.cs
- WebPartZoneBase.cs
- DataGridViewRowCollection.cs
- StructuralType.cs
- PropertyToken.cs
- HttpHandlersSection.cs
- xamlnodes.cs
- ConfigXmlText.cs
- WindowsSolidBrush.cs
- RegisteredScript.cs
- TextEncodedRawTextWriter.cs
- Identity.cs
- safex509handles.cs
- RoleManagerEventArgs.cs
- Paragraph.cs
- OutgoingWebResponseContext.cs
- TypeExtension.cs
- Serializer.cs
- ShaderEffect.cs
- BitmapEffectGeneralTransform.cs
- InputLanguageProfileNotifySink.cs
- OutputScope.cs
- IndentedWriter.cs
- Label.cs
- errorpatternmatcher.cs
- SelectedGridItemChangedEvent.cs
- SqlNodeAnnotations.cs
- GeometryConverter.cs
- OdbcCommandBuilder.cs
- MemberMaps.cs
- MimeFormatter.cs
- ScrollData.cs
- WinInet.cs
- ListBoxAutomationPeer.cs
- mactripleDES.cs
- AssemblyBuilderData.cs
- FileDialogCustomPlacesCollection.cs
- SqlCacheDependencySection.cs
- FileEnumerator.cs
- ReferentialConstraintRoleElement.cs
- ReadOnlyHierarchicalDataSource.cs
- MutexSecurity.cs
- TemplatePartAttribute.cs
- SchemaInfo.cs
- securitycriticaldata.cs
- Permission.cs
- CurrencyManager.cs
- DataGridViewSortCompareEventArgs.cs
- PassportIdentity.cs
- Configuration.cs
- PointLightBase.cs
- AutomationAttributeInfo.cs
- DoubleAnimationBase.cs
- DesignTimeVisibleAttribute.cs
- DecoderFallback.cs
- RenderTargetBitmap.cs
- CodeConstructor.cs
- CornerRadius.cs
- XmlSyndicationContent.cs
- TypeValidationEventArgs.cs
- Schema.cs
- MessageDescription.cs
- ColorAnimation.cs
- TextEditorDragDrop.cs
- PrimitiveOperationFormatter.cs
- RemotingConfiguration.cs
- FixedSOMContainer.cs
- FunctionUpdateCommand.cs
- StateChangeEvent.cs
- OutputCacheProfileCollection.cs
- ExpandableObjectConverter.cs
- DocumentXmlWriter.cs
- XmlNodeList.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- PrintPreviewDialog.cs
- SqlSupersetValidator.cs
- RangeBase.cs
- ActivityDesignerLayoutSerializers.cs
- PolicyUnit.cs
- ColumnMapTranslator.cs
- documentsequencetextview.cs
- CompilerLocalReference.cs
- AssemblyResourceLoader.cs