Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / MS / Internal / Ink / InkSerializedFormat / StrokeDescriptor.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EmptyControlCollection.cs
- GenericTypeParameterBuilder.cs
- Focus.cs
- DetailsViewDeleteEventArgs.cs
- XmlSchemaDocumentation.cs
- XPathChildIterator.cs
- Logging.cs
- CachedTypeface.cs
- OdbcConnectionStringbuilder.cs
- SaveWorkflowAsyncResult.cs
- InputProcessorProfiles.cs
- ProviderException.cs
- BufferedResponseStream.cs
- IPPacketInformation.cs
- TypeDescriptionProviderAttribute.cs
- _LocalDataStoreMgr.cs
- CompilerGeneratedAttribute.cs
- LoginView.cs
- Collection.cs
- RequestCacheValidator.cs
- TransportReplyChannelAcceptor.cs
- Constants.cs
- _LocalDataStoreMgr.cs
- AuthorizationRule.cs
- TableRowCollection.cs
- ObjectDataSourceDisposingEventArgs.cs
- EditorZoneBase.cs
- EdmComplexTypeAttribute.cs
- DropDownList.cs
- HttpCachePolicy.cs
- GradientSpreadMethodValidation.cs
- ImageListStreamer.cs
- MsmqIntegrationBindingCollectionElement.cs
- XmlNavigatorStack.cs
- EditorAttribute.cs
- CodeTypeParameter.cs
- X509RawDataKeyIdentifierClause.cs
- ParseHttpDate.cs
- RuntimeWrappedException.cs
- HtmlDocument.cs
- AddInAdapter.cs
- RelatedView.cs
- StylusPointPropertyId.cs
- DataBinder.cs
- LocalizedNameDescriptionPair.cs
- Parameter.cs
- srgsitem.cs
- InputLangChangeRequestEvent.cs
- HScrollProperties.cs
- LambdaValue.cs
- ZoneLinkButton.cs
- Screen.cs
- SingletonConnectionReader.cs
- ClientTargetSection.cs
- GetPageCompletedEventArgs.cs
- LocatorPartList.cs
- GeometryGroup.cs
- Config.cs
- Animatable.cs
- EndpointBehaviorElementCollection.cs
- HandlerWithFactory.cs
- TextBoxLine.cs
- PassportIdentity.cs
- DayRenderEvent.cs
- RawStylusActions.cs
- UserNameSecurityToken.cs
- GregorianCalendar.cs
- ComponentEditorForm.cs
- DefaultEvaluationContext.cs
- HtmlControlPersistable.cs
- TableParaClient.cs
- ComEventsHelper.cs
- RetrieveVirtualItemEventArgs.cs
- NavigationPropertyEmitter.cs
- HttpHandlerAction.cs
- DataGridViewTextBoxEditingControl.cs
- HttpPostLocalhostServerProtocol.cs
- Composition.cs
- DynamicArgumentDialog.cs
- DecimalStorage.cs
- WorkflowApplicationEventArgs.cs
- NonParentingControl.cs
- TemplateField.cs
- CodeVariableReferenceExpression.cs
- ProfileInfo.cs
- DataTransferEventArgs.cs
- NetSectionGroup.cs
- CodeTypeReferenceExpression.cs
- SHA384Managed.cs
- InputProcessorProfiles.cs
- CodeMethodMap.cs
- XmlElement.cs
- ReadOnlyDictionary.cs
- ProvidersHelper.cs
- HttpCacheVary.cs
- SmiMetaData.cs
- BadImageFormatException.cs
- RegexParser.cs
- EmbeddedMailObject.cs
- WebServiceHandlerFactory.cs